Questions tagged [visualforce-component]

Visualforce components encapsulate a common design pattern and can be reused several times in one or more Visualforce pages. Salesforce provides a library of standard, pre-built components, such as <apex:relatedList> and <apex:dataTable>, that can be used to develop Visualforce pages. In addition, you can build your own custom components to augment this library.

Filter by
Sorted by
Tagged with
0
votes
3answers
153 views

Salesforce for building real world applications [closed]

Is there any resource available for creating or building a real world application in salesforce which uses APEX and Visualforce SLDS components. Or can I build such type of apps. Can you my friends ...
0
votes
1answer
49 views

File upload via related list not working in IE11

at the moment I'm facing a really weird issue: I have a custom VF page, that embeds <apex:relatedList list="CombinedAttachments"/> and also a custom VF component. The uploading of files ...
0
votes
2answers
79 views

Standard component [closed]

Can we extend a class in Standard Component? or Can we get the code of a Standard Component? If No, then please provide a link where salesforce says that we cannot customise a standard Component. My ...
-1
votes
1answer
146 views

How to show Knowledge article list History in Search Bar [closed]

I have created list of Knowledge articles in articles management standard object. i need to show that articles list in search bar when i am searching for related questions/data that time i need to ...
0
votes
1answer
214 views

How to call a jquery function from an autocomplete search box which is specified in VF Component

I'm having an auto-complete search box which lists the product details on entering the string. I have specified this in VF component and referring the same in my vf page. Now I want to hide one text ...
0
votes
0answers
130 views

How to process data synchronously or wait until callback in visualforce remote action?

I'm trying to get data from remote action from a mouseover and display the popup. I have tried below code to pass the data in bootstrap tooltip/popovers. <script> function showPopup(recId,...
0
votes
1answer
52 views

Associating master detail relationship to Visualforce component

Resubmitting to make this clearer. I have a parent object Claims_Client_Risk_Assessment__c (CCRA) that calls a Visualforce component page using the object CCRA_LOB_NonStdAuto__c (LOB_NonStdAuto.) I'm ...
0
votes
0answers
82 views

Attachments to a custom Object - DmlExecutionException

TestCompone.page <apex:page standardController="WebformData__c" extensions="TestCompon"> <apex:form > <apex:outputLabel >Pick One</apex:outputLabel><br/> <apex:...
0
votes
1answer
2k views

system.assertException - assertion failed [closed]

I'm getting the below error when i deploy the apex class, how can I solve it: RELVSRenewalControllerTest testLoadChildDataCurrent System.AssertException: Assertion Failed: Expected: 4, ...
0
votes
2answers
88 views

Trying to add Required mark without using required = true for input fields with pageblocksection inside outputpanel

<apex:outputpanel styleClass="requiredInput" d="Account_Info_section" layout="block"> <apex:pageblockSection title="Account Info (All Fields are Required)" rendered="{!NOT(...
-1
votes
1answer
32 views

How a component controller works

I am trying to access fname which is set to a value to display in the component . but fname is null. Please see the below code Page: <apex:page > <h1>Congratulations Page</h1&...
0
votes
1answer
453 views

Error method has a cyclomatic complexity and nested if error

Please find the below trigger handler which is not passing PMD rules. Error 1."Deeply nested if..then statements are hard to read" for following class: Public Class LeadTriggerHandler { //Set ...
0
votes
1answer
44 views

styles are changing in <li> , If I put <li> in outputpanel

I am looking to display labels based on the condition for that I am trying to use Outputpanel. But, If I use Outputpanel "li" tag styles are changing and Underline is coming on labels when we put ...
0
votes
0answers
66 views

Link Salesforce Canvas App

We have canvas app in our managed packaged. Now we want to link canvas app directly from Contact object component. How do we link . Also can we provide additional parameters to canvas app from this ...
1
vote
1answer
133 views

VF Email Template throws List has no Rows to sObject when invoked via VF Component

I'm facing an issue with VF Email Template. The error is not very Clear : "Error Error occurred trying to load the template for preview: List has no rows for assignment to SObject. Please ...
1
vote
1answer
62 views

Manual SingleEmailMessage change to template

I have a process using Apex and Visualforce to create a custom email with a pdf attachment and a field to enter body text. It is based off a custom object and the email addresses To, CC, bCC, are all ...
1
vote
1answer
71 views

How to add CaseComments, Attachments, Team Members and Histories as a list related to the RelatedList tag in a visualforce page for Case [duplicate]

as the question posed I would like to know how to add all these related lists on the case visualforce page. I have added others and they work perfect, but specifically with these (CaseComments, ...
0
votes
0answers
102 views

Using apex:tab and executing JS on the embedded page (ChartJS)

I have some VF's which there they have their own jS being executed. When I had embed these pages as apex:tabs and tried navigate through them the jS apparently aren't being executed. Even when I ...
0
votes
0answers
30 views

Can´t see fields to edit in apex:inputFields

I have problem with writing values to custom object in VF controller whitch i include to apex:page. I can´t see box to write values in my apex:form. I have apex:inputfield, but i can only see it´s ...
0
votes
1answer
251 views

Visualforce Error - Select components should have at least one child component of type selectOption or selectOptions

<apex:page > <apex:sectionHeader title="Student" subtitle="New Student" help="/apex/page"/> <apex:form > <apex:pageBlock title="Student"> <apex:...
2
votes
0answers
566 views

Failed to initialize Open CTI. Ensure that it is loaded from the right frame with correct URL parameters

I'm trying to use an existing web page that's using Open CTI to emulate Softphone screen popping and using Apex together with Lightning. I'm trying to do this by having it inside a Utiliy Bar ...
0
votes
1answer
292 views

Test class coverage for dynamic SOQL [closed]

Can any one please help me to cover below method containing dynamic SOQL public PageReference query() { message = 'SELECT '; Boolean first = true; for ( SelectOption so : ...
0
votes
1answer
123 views

How to convert csv into tabular form

I have a csv stored into a String named csv in controller. I have passed this string to a javascript function.The original string(in controller) had line breaks but when I download the file it is ...
3
votes
1answer
82 views

Approval Process for over 1500 records

I am trying to write a VF page-controller for an approval process which should submit over 1500 records at the same time. The approval is 2 stage.. after initial submission, it should be approved by ...
0
votes
1answer
45 views

How to delete VF Page's tab from package which is not pushed on exchange, which is yet to be reviewed . How to delete

We have package created which includes one test "Tab" . in VF page. We dont want this tab to be sent along with package. When We attempt to delete this, It somehow not allowing or not seeing option ...
0
votes
1answer
3k views

Missing return statement required return type: System.PageReference

Trying to create a custom controller for a VF page following is the code for Apex class - public class MyCustomVFPage_CTR { public String ObjectId {get;set;} public String ResponseCode {get;...
0
votes
1answer
364 views

APEX- Unable to get the response from the REST API [closed]

I am implementing the lightning component and APEX controller to make the call to REST API .I am able to get the response from the REST client but if i call it through APEX controller it is saying 404 ...
0
votes
2answers
377 views

Possible to add a Visualforce component with Javascript?

I am trying to make a custom page for adding a bunch of related objects to one parent object. Specifically a bunch of web form fields to a parent web form. Please don't try to change this model ...
0
votes
2answers
106 views

I need to send an email to one email(test@gmail.com) when a Picklist value is updated to one value

I have a custom object Bank__c, Whenever a picklist Branch__c is updated to 'California' an email should be sent to test@gmail.com(just this address), that email contains related Branch_Id__c in the ...
0
votes
1answer
1k views

Assign Ids dynamically to Apex:inputField

I'm trying to assign Id to my inputField dynamically, those input fields are coming from field sets. These Ids needs to be assigned to those fields which are required in database. On giving Id ...
0
votes
2answers
83 views

Edit main controller's value in apex:component's controller

I have a component: <apex:component controller="Demo_CTRL" allowDML="true"> <apex:attribute name="isVisible" assignTo="{!flag}" type="Boolean" description="Boolean description"/> // some ...
1
vote
1answer
903 views

On clicking on bar chart display list of related records on Visualforce page

I have a visualforce page with a bar chart that displays a user count on x-axis and profile name on y-axis. When a user clicks on the bar chart, I need to populate the user data in a table that have ...
0
votes
2answers
35 views

I want to update a specific record which is edited in list of records

When i am updating a record all the records in the list also gets updated. I only want the record which changes should only update not others in the list. This is the visualforce page: <apex:page ...
2
votes
1answer
430 views

why i'm seeing “Standard page view” & “Standard page edit” link on every visualforce page

Since last week or two i'm noticing these two links on all of the visualforce pages. is this a new feature?
3
votes
0answers
40 views

How to validate the specific record when field is empty based upon specific record value in apex:repeat tag?

How can I validate the specific record when field is empty based upon specific record value in apex:repeat tag? For example, I have displayed 10 account input records with four fields in page. In ...
3
votes
1answer
445 views

Visualforce Email Templates Dynamic Subject Child Object

I have looked through a number of different threads and haven't found any clear answers to populating a child object's value in the subject of a Visualforce Email Template. I want to populate the ...
0
votes
1answer
368 views

Can I dynamically inject visualforce component into visualforce page?

Is it possible to dynamically inject a Visualforce component into a visualforce page? I don't necessarily want the Visualforce component to be loaded with the rest of the page on the initial page load....
0
votes
2answers
1k views

How to use StandardController from visualforce Component

I have a single VisualForce Page and multiple Components, and each components have different controllers for individual operations. But in one of the VisualForce Components I want to upload a document ...
0
votes
1answer
22 views

How to format multivalve picklist values for query

I have an Opportunity object that has a multivalve picklist field called Support_Required__c. I want to use Support_Required__c to query for any Account whose Support__c (multivalve picklist) - any of ...
0
votes
1answer
188 views

Image not rendering in Visualforce Email Template

I am using a visualforce component in which I have an image tag that is rendering in the org, but when I am sending it via Email the image is getting rendered. Visualforce Component <apex:...
0
votes
0answers
124 views

Remove Visualforce Page from Home Page Sidebar

I've a Salesforce application in which on my Home Tab there is one page displayed in the Sidebar. I wanted to remove that page from the sidebar. I tried searching it in my Home Page Layouts and Home ...
1
vote
1answer
64 views

Activity Actions in Gmail for lightning

When i open a Contact record in salesforce LTX it give me option of New Task, Log a Call, New Event under Activity Tab as shown below. But in Lightning for Gmail when i open contact and goes to ...
0
votes
1answer
121 views

I am confused by action methods in visualforce page

I am confused by five tags in visualforce. apex:actionFunction, apex:actionPoller, apex:actionStatus, apex:actionRegion and apex:actionSupport. Could you please explain them to me.
1
vote
1answer
160 views

Apex:InputText - Handle Apostrophes

How do I handle apostrophes when using apex:inputtext component to set the value of a search? Some searches indicate string.escapeSingleQuotes(searchString); or {!JSENCODE(!searchString)} would ...
3
votes
0answers
50 views

My hard-coded string is modified during Upload or Install process!

In my VisualForce page I've used one component three times. This component has an attribute called tableTitle which gets a string and shows it on my table. This table component is in a package (let's ...
0
votes
0answers
43 views

Lightning commandButton calling 2 methods

So I would like to have a button call a method and then based on its result call another method. This button will be in lightning and due to some constraints, it needs to be done in visualforce i.e ...
0
votes
1answer
950 views

How do i pass data from visualforce page to component's custom controller?

I have a modal in the visualforce page that i want to move to its own component, for the most part its just displaying information. The data passed to the conponent controller constructor doesn't ...
1
vote
1answer
602 views

reload visualforce page after displaying custom message

I've got a Visualforce Page that is just a form with a Save button. I'm trying to display a message if the record is inserted correctly or not, and if it is inserted correctly I want to reload the ...
3
votes
1answer
1k views

Lightning styling of multi-picklist in visualforce page?

was wondering if anyone had any suggestions for how to do styling of a multi-picklist in a lightning manner within a visualforce page? <apex:repeat value="{!$ObjectType.Surgery__c.FieldSets[fixed]}...
0
votes
1answer
138 views

How to send Mass email using Visualforce Template to Contacts

I need to send Mass email to contacts with related Lead data. I have a Visualforce email template that has the related Lead information. Is there any way to write a batch class to send out an email to ...

1 2 3 4 5 21