Questions tagged [dynamic-visualforce]

Dynamic Visualforce components offer a way to create Visualforce pages that vary the content or arrangement of the component tree according to a variety of states, such as a user’s permissions or actions, user or organization preferences, the data being displayed, and so on. Rather than using standard markup, dynamic Visualforce components are designed in Apex.

Filter by
Sorted by
Tagged with
-2
votes
1answer
40 views

Assign row values from one object to another object as columns or fields

I have row values as dates in one object, i.e dates within a given year. I have a second object with field names as Day1__c, Day2__c and so on till Day366__c. I want to assign the dates to the fields ...
0
votes
1answer
154 views

Why my csv file is blank?

I try to pass on a list to a new visualForce page and then display that list as a table to download as a csv file. But I am getting blank csv file. As soon as i redirect to my new page the list gets ...
0
votes
1answer
113 views

SLDS in Visual Force - How to render a conditional div?

I have a slds-grid that I want to display conditionaaly I tried <div class="slds-grid slds-wrap slds-gutters" rendered="{on condition true}"> doesn't work, condition is correct. Tried using '...
0
votes
0answers
28 views

User-specific settings page for managing boolean inputs 1:1 for each field in a dynamic describe of fields?

There is a managed app on the Appexchange and it solves a limitation by employing a "Track History" concept to give admins a boolean setting specific to each datafield on User object (for the purpose ...
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 ...
1
vote
0answers
275 views

Generate Excel in Salesforce Visualforce/ Apex

Has anyone done Excel file generation in Salesforce with bit complex formatting? If so appreciate any guidance or reference. I already tried formatting with CSS and having the contentType="...
0
votes
1answer
137 views

How to Display Records in vf [closed]

in Controller i get the ContactRoles from opportunity through a listview but how to display ContactRoles in vf page public AccountListViewExtension(ApexPages.StandardSetController controller) { ...
3
votes
1answer
386 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
151 views

relative url for visualforce render to word

Is there a way to make the url used to render images from visualforce to word dynamic. The problem I am facing is that the URL works in sandbox but on deployment I have to change the url for ...
0
votes
1answer
50 views

Vf component for different objects [closed]

I want to design one vf component for 2 different sobjects with same fields
-1
votes
1answer
108 views

Hi guys i m new in salesforce and making tree view on account as parent, contacts as child and task/event as gchild

I have to retrieve in created date sorted manner i m able to retrieve up to task and events but they both came in separate list .I am unable to put both in same list and sort them by recent created ...
0
votes
1answer
132 views

Dynamic Select Option in Remote Objects Visualforce. This page is not record-specific

The question is in the code comments. Thank you! <apex:page> <apex:remoteObjects > <apex:remoteObjectModel jsShortHand="js" name="myCustomObject__c" fields="Id"> <apex:...
0
votes
1answer
186 views

Facing Problem with rendering apex:dynamicComponent

Extend question from here Below code step 1 i have tried with rendering component1 and component2 it is working fine. step 1: Visualforce Component1 <apex:component> <div> ...
0
votes
2answers
612 views

How to add IF condition to check the field value in the VF page email template [closed]

I have tried to add If condition but getting error Error: Unknown property 'VisualforceArrayList.Name' <p>Dear {!recipient.name},</p> <table border="0" > ...
2
votes
1answer
80 views

Apex Form to collect mutiple values and run query

I currently have a VF page and custom controller that collects name and email and searches for contacts that match the email, if it finds 1 contact, it 'registers' that contact for our training course....
0
votes
0answers
133 views

Freezing column in visualforce page bageblock section [duplicate]

I have requirement to freez/lock firsrt 2 or 3 colums in a table which is implemented using pageblock table supose i have a page which displays all customer recrod details using pageblock table now i ...
5
votes
4answers
107 views

Is it possible to get the label or describe from an SObjectTypeToken?

In my controller, I have some SObjectType property: public SObjectType myProperty { get; private set; } I want to get the label (or better yet the entire describe) of this object in Visualforce ...
0
votes
1answer
315 views

Change value in input component on rerendering

I have an <apex:dataTable value="{!dtos}" var="dto">. There I have <apex:column> <apex:facet name="header">rrr</apex:facet> <apex:outputPanel id="rrr"> <apex:...
0
votes
1answer
274 views

Visualforce : Dynamic rendering of apex:inputfield

I have a custom object Response__c as shown below. xx,yy,zz are different field values for the three records. Please note that not all fields are populated for all the three records. A single apex:...
0
votes
0answers
441 views

Dynamically display sections on a Visualforce page based on record type

I am trying to develop a visualforce page that will display different sections based on record type. I have gotten the page to work as expected upon creating a new record; however, when an existing ...
0
votes
1answer
80 views

Get list of Page Layouts from a VF Page

Anyone know if there's a way to get a list of the page layouts for an sObject type from a VF page? The API docs say there is a property called namedLayoutInfos. But javascript trying to reference ...
0
votes
1answer
398 views

How to dynamically add SLDS class to VF page div tag

On click of a button, I want to dynamically add 'slds-has-error' class to a div around an element. My markup is as: <apex:form id="theForm"> <!-- divContainer --> ...
1
vote
1answer
119 views

Create Dynamic Table On the basis Of 2 Objects [closed]

There are 2 objects one obj1 and obj2 I have to create dynamic table in visualforce page in which if new record is inserted to the obj1 then one row should be added to table and if one record in obj2 ...
0
votes
3answers
749 views

Non-editable input fields

How to make an input field non-editable when it has values. ie. to make an input field non-editable after it has dynamically fetched values from an object field. I am having my code within my ...
4
votes
1answer
1k views

How to catch internal Salesforce error in APEX?

I have a condition where i have to get a list of valid custom label names in a list using which i can display those custom labels dynamically on the page. But whenever i am checking if the custom ...
0
votes
1answer
60 views

Unable to bind custom object on to pageblock on rerendering of VF page

Am trying to write a VF page which has details of the custom object and their related lists in tabular format. My code for it goes as below. Visualforce Page: <apex:page controller="Report" ...
0
votes
1answer
159 views

Enabling a picklist field, text field and a commad button on click of a command link

<apex:column> <apex:commandlink value="Reject" action="{!Reject}" reRender="none"/> <br/> <apex:selectList value="{!selValue}" multiselect="false" size="1" disabled="...
0
votes
1answer
55 views

Javascript function not displaying correct result

<apex:page standardcontroller="Price_Study__c" extensions="dynamicpicklist" sidebar="false" > <apex:includeScript value="{!URLFOR($Resource.JqueryA, 'js/jquery-1.6.2.min.js')}" /> <apex:...
0
votes
1answer
119 views

Unable to rendered the pagblock after clicking the button

Initially when pageload and first time rendered working ,but when i am clicking again save button the pageblock should hide if there is no record in pageblocktable. Please see below code <apex:...
3
votes
2answers
2k views

Passing counter variable (apex:repeat + apex:var) into apex:assignTo yields 'null'

I'm trying to build a Visualforce page which lists a set of records (via apex:repeat for a Visualforce 'record' Component), and where each record has a 'delete' button under it. Hitting delete should ...
1
vote
0answers
373 views

VisualForce: Dynamic Page Headers based on Parameters works as expected until adding actions to page

Background: I am working on a VisualForce page to allow our customers to 'Add to Calendar' from an email alert that they receive when we book an Event. The Apex page takes 2 parameters right now, ...
1
vote
0answers
63 views

Why is salesforce returning internal server error when I try to render a custom dependent picklist in visual force page?

I have a visual force page which overrides the Edit/New pages in salesforce. But when I create a dependent pickList like so: Navigate to Setup> Customize > Accounts > Fields Scroll down to "Contact ...
0
votes
3answers
381 views

How to map Dynamic sObject Mapping?

I have posted this question two times but i'm not getting the solution for that reason i'm again posting this question. First i have done the reading of two sobject fields dynamically. The two ...
0
votes
1answer
78 views

save error :unknown property 'DataInsert.fields'

Here is my apex class: global class DataInsert { // property declarations Set<String> fields ; global PageReference doInsert() { // other logic ...
0
votes
3answers
71 views

How to separate the required fields from Custom Object record?

I'm posting this question previously but i'm not achieving my goal for that i posting again I have a custom object called Incident__c. and it has some fields Imtpact__c Incident_state__c ...
0
votes
1answer
95 views

Issue with passing different value as ComponentValue in apex:dynamic Component inside apex:repeat tag [duplicate]

I am facing an issue. When i am putting <apex:dynamicComponent id="dynamicComp" componentValue="{!clauseList.dynamicCompName}" invokeAfterAction="true"> inside <apex:repeat> tag only the ...
1
vote
1answer
60 views

How to add inputs of the correct widget type to the page?

I have a an object that defines attributes and the type of attribute; for instance Nme (String), LastSeenDate__c (Date), Age (Number), Countries (Picklist), etc. Based on this information, I want to ...
1
vote
1answer
44 views

The post from Chatter group in Salesforce not properly displayed

I am using javascript remoting to get the chatterfeed details and putting it in the visualforce component and show it using Handlebar Moustache . Below is the part of that component {{#if ...
2
votes
1answer
547 views

How we can use Authentication Provider in Visual force page?

I am using custom visual force page for Community self register and login. I want to add option for register and Login via Gmail and LinkedIn. I created two Authentication Providers and it is working ...
2
votes
1answer
63 views

Inconsistent behavior with apex:dynamicComponent

I'm trying to migrate some code over to using dynamicComponents to avoid some XSS vulnerabilities and it's not working how I would expect it to when inside any type of repeat functionality (apex:...
0
votes
1answer
76 views

Visualforce actionRegion doesn't stop page inputField validation

actionRegion around the page navigation doesn't stop the input:field standard validations. Using the actionRegion around the selectList is stopping the validation but is not sending the changes ...
0
votes
0answers
229 views

Page is refreshing after putting CKEditor

The code below shows that I have a pageblocktable that contains a column of a ckeditor which is a long text. I want to rerender it within the same page by adding of a new row using the button Add Row. ...
1
vote
0answers
88 views

Is it possible to replicate report customization through visualforce?

I want to replicate the class style drag and drop report builder (see image) on a visualforce page to upload as a lightning component on the Napili Community.
1
vote
1answer
167 views

How to call java script function from dynamic component in apex

I am getting below error : Value assigned to expression field is not valid for <apex:commandButton oncomplete> I am calling javascript function on 'oncomplete'. Component.Apex....
0
votes
1answer
876 views

Can i call a visualforce page on the click of a button in lightning and display an email template which has ids retrieved from a custom object?

I have selected 3 out of say 10 and submitted it for updation in a lightning page(apex)( the fields in these 3 records need to be updated to new fields). On the click of the submit button, we pass ...
0
votes
2answers
255 views

OAuth Response_type = 'Code'

During OAuth Authenticaion , I have seen the code using "Response_type = 'Code'" in Url Parameters , can anyone explain what does this "code" mean ?
0
votes
0answers
78 views

Visualforce Page won't update Custom Object records

I'm trying to create a custom Visualforce Page that will show related custom objects. I have it so that the user can press "Edit Details" and all the outputFields will turn into inputFields. The ...
0
votes
2answers
249 views

How to implement <apex:param> using dynamic visualforce components

I am building an outputlink as a column as a part of pageblocktable all using dynamic visualforce components. But how do I build Param tag using dynamic visualforce components? I get an error when I ...
1
vote
1answer
159 views

can we customize page layout using post install script

I'm developing an app for the appexchange containing custom visualforce pages/components. Instead of asking the user to create custom fields and edit layouts to place the vf pages after the ...
3
votes
2answers
557 views

Pass javascript variable to apex variable , error : cannot set value of null

Apex controller : public class NameController { public String acname {get;set;} private final Account acct; public NameController(ApexPages.StandardController stdController) { ...