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
0
votes
1answer
120 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
364 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
142 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
48 views

Vf component for different objects [closed]

I want to design one vf component for 2 different sobjects with same fields
-1
votes
1answer
104 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
123 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
173 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
569 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
76 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
127 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
106 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
302 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
244 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
405 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
77 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
363 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
109 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
671 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
155 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
111 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
325 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
61 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
360 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
72 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
70 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
91 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
41 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
505 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
62 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
73 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
227 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
87 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
164 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
859 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
244 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
75 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
243 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
157 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
528 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) { ...
0
votes
1answer
2k views

Pass javascript variable to apex variable

I want to pass encodeURIComponent("{!Account.Name}"); to some apex variable. How can I achieve this? I will be using ecnocded value in my page.
1
vote
1answer
41 views

Page Layout for Accounts via Script

I know the way to create custom pageLayout via setup . Can we automate this process of creating page layouts when I am installing the managed package ? If there is a way , please point me in that ...
0
votes
1answer
452 views

Dynamic inputfield in visualforce

I'm new to salesforce development and I'm trying to dynamically create fields based on the field name selected. I'm not sure how to achieve this. I have a picklist of fieldnames for a Lead object in ...
0
votes
2answers
339 views

Dynamic Component OutputField Bound to SObject

I am trying to bind a field to an outputfield dynamically apex, but in doing so I get value for <apex:outputField> is not a dynamic binding! This does not work: Component.Apex....
0
votes
1answer
348 views

input value is not getting assigned to variable in javascript

I have a visual force page with table included. 4th column is input and 3rd column is a simple formula output. but i am not able to assign input from table to javascript variable and stuck there for a ...
2
votes
0answers
1k views

Rerender is not currently supported with rich text editing enabled

I'm trying to implement richText and my datatype is Text Area (Rich) when I click on Save button I get the error Does Salesforce support Text Area Rich by default? Error: Rerender is not ...