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
9
votes
2answers
2k views

Field Values In Dynamic Component Not Retaining After Error

I updated the question due to the issue being specifically for a dynamic component Currently, I have a custom VisualForce page used to fill out a new Opportunity. Everything works as intended except ...
5
votes
1answer
6k views

To achieve Grand total for the retrieved column in a datatable generated using Soql

I have created a VF tab in which i have retrieved the data with a SOQL statement and displayed the same with VF page using a datatable to make it as a customized report. I can't find a proper solution ...
7
votes
2answers
6k views

Add more than 1000 picklist values in visualforce page (controller 1000 list items limit)

I have following code - Page - <apex:selectList value="{!selectContactId}" multiselect="false" size="1" id="RelatedContact"> <apex:selectOptions value="{!relatedContacts}"/> </...
10
votes
6answers
14k views

I have api objectfield name, how can I get the label?

Im working in a site, And I need to present many fields to be filled and the page, so accoding to a selecction before, I have all the field but I have the Api Name, and the object name, but, With this ...
6
votes
1answer
15k views

Formatting number values on Visualforce page

I am wondering if it is possible to dynamically format input numbers in Visualforce components when rendering as HTML. I am able to successfully accomplish this when rendering as output tags doing the ...
7
votes
3answers
7k views

Loading a custom component into a Visualforce page dynamically

I have a visualforce page that I would like to inject custom components (header and footer) if they exist into the page. According to the docs Creating and Displaying Dynamic Components I can ...
17
votes
4answers
6k views

render Blob image in PDF using Visualforce

Hi below is a snippet of a code where i am rerendering as pdf and have a blob image stored in a text field. When i display the blob image in VF page it displays fine, but when i display same image ...
3
votes
1answer
654 views

Pass different values as componentvalue to <apex:dynamiccomponent> in <apex:repeat>

<apex:repeat value="{!blocksThatAreComponents}" var="key"> <div id="{!key}"> <apex:dynamicComponent componentValue="{!PageComponentsMap[key]}" /> ...
9
votes
4answers
23k views

How to refresh the parent page after a Save action in a Visualforce page embedded in a page layout?

I am trying to complete a VF page section that my sales-staff will be utilizing to add information to custom fields when a condition is met inside of the Account object. I have the custom page built ...
5
votes
2answers
12k views

how to pass value from visual force page (InputField) to controller?

I have created a Vf page from which i need to fetch the value of new owner and need to save the value in property defined in controller: Following is my vf page code: <apex:pageBlockSection> ...
10
votes
4answers
7k views

How can I get picklist values using Dynamic Visualforce Bindings?

I'm currently gathering metadata on fields using a controller and was investigating using Dynamic Visualforce Bindings instead. I can see that I can iterate through a controller-supplied list of ...
6
votes
1answer
169 views

How to keep components out of the Visualforce view state when they are not needed?

The view state problem we mainly run into is not properties of the controller using it up (as we use transient heavily) but the component tree that the Visualforce tags generate using it up. That is ...
2
votes
2answers
2k views

Filter Column on Analytic:reportchart not a valid filterable column

I have created a vf page with a standard controller equal to the Account Object. In the report that I am trying to bring in on the vf page it has the Invoice_History__c object and the Account object ...
2
votes
1answer
2k views

How to increase the width and height of the Rich Text area field in Visual force Page?

I know this question has been asked earlier. but did not see proper responses so asking again. <apex:pageBlockSection title="Preview Pane" columns="1"> <apex:inputTextarea richtext="true"...
4
votes
4answers
5k views

How to extract a number from a string

Im a newbie in Apex and im developing a page using Visualforce. My string format is always like this "xx-xx-999999". In this format I need to get only the integer. For example the string is "RO-W1-...
3
votes
3answers
3k views

How to create a visual indicator of Stage on Opportunity record

I want to create STAGE based chart in my salesforce org. Please find the screenshot for the sample.
3
votes
2answers
990 views

Getting a VF component dynamically by name in Apex

I am trying to use Apex to control which component to show inside a <apex:dynamicComponent> but I don't want to hardcode the component names. So my question is, how can I reference the component ...
2
votes
2answers
5k views

Can I change the color of a VF table cell dynamically?

I have a picklist called Status, displayed in a Visualforce table with fields like .. Closed Open Critical <div id="col1"> <apex:column > <apex:facet name="header">...
1
vote
1answer
4k views

Add/Edit multiple Records on custom VF page

Is it possible to add or edit multiple records on a custom VF page? For the example below, if lineItemList return fewer than 10 records, I would like to render blank inputfields for insert of new ...
11
votes
1answer
7k views

The “Escape” in visualforce javascript remoting

The description said the option allows user to determine whether to escape the Apex method’s response. And, actually, it doesn't "escape" the respone, but "encode" or "not encode" the response. Am I ...
9
votes
2answers
4k views

How do I create a dynamic list in Visualforce

I want to create a view of certain custom fields and objects, with the data for the view computed in a controller with input from SOQL statements from custom objects. The view would consist of several ...
2
votes
2answers
368 views

Unknown property 'SObject.Description' Error is in expression '{!FormObject.Description}' in component <apex:page> in page formgen_page

I did a small test program to dynamically populate a set of fields onto a Visualforce page, which can enable users to enter data from the form. Created a fieldset as below. Then I did an Apex page ...
8
votes
3answers
1k views

Dymamic components execution order issue

I have the following VF Component which uses a dynamicComponent tag inside of it. <apex:component controller="myController"> <apex:attribute name="identity" type="String" ...
7
votes
2answers
1k views

<apex:relatedList list=“{!DontExistInAllOrgs__c}”/ > only solveable with Dynamic Vf components?

Does there exist a dynamic binding mechanism for the list attribute in the <apex:relatedList> element? I want to display a related list for a relationship that does not exist on all orgs where ...
3
votes
2answers
298 views

Data Driven Visualforce Page

I am designing a custom input picklist form that will be data-driven.Based on picklist value selected next question should show up with the picklist options.Like wise it might end up having 10-15 ...
1
vote
1answer
313 views

Outputting spaces with dynamic VisualForce component

I am having trouble getting my dynamic VF Component to space out the buttons for navigation on my page. As you can see in the image below, it correctly outputs spaces between the Previous and Next ...
0
votes
1answer
3k views

How do I send translated emails based on the language on the user record?

Just i want to send email content type multiple language. <messaging:emailTemplate subject="Confirmation Registration" recipientType="Contact" relatedToType="User" language="{!relatedTo....
8
votes
1answer
581 views

Dynamic Visualforce Components - Access Pass-Through Attributes

Is it possible to use html-pass-throug attributes at Dynamic Visualforce Components? Component.Apex.InputField result = new Component.Apex.InputField(); result.style = 'font-size: 9px'; result.title ...
6
votes
2answers
379 views

URLFOR/Component.Apex.OutputText in Unit Test causing Internal Server Error?

Background I'm trying to build the usual "URL hack" to default some field values when a new record is created. This is a simple override that basically has a page like: <apex:page ...
6
votes
3answers
9k views

Bind a radiobutton to controller

I have a pageBlockTable that gets its items from a database list from the controller I'm trying to add in that pageblockTable a column for radiobuttons so the user can select only one row. I tried ...
6
votes
1answer
3k views

Apex form load select list based on selected item in previous select list

I have a VisualForce / Apex form. There is a dropdown SelectList input field for object. I want to load the list of fields for the selected object in a second select list on the same form. I've ...
5
votes
1answer
597 views

sObject Required Field with Dynamic Apex

I'm trying to find required fields for lead object, I want to make sure this correct logic, because its giving field results which are not marked as required.I'm using isNillable() method in field ...
3
votes
1answer
802 views

Cloud Scheduler (Meeting Request)

Can we pre populate To field in Meeting Request.How to achieve this. or Is there a way create a meeting request through apex/vf page Note: This is the Pop-Up which comes when we click on New ...
3
votes
1answer
64 views

Any way to pass parameters to apex:dynamicComponent?

Related to this question How to keep components out of the Visualforce view state when they are not needed?, I have many apex:dynamicComponents in my page that I want to put slightly different content ...
3
votes
2answers
6k views

Error handling for View State of vf page in Apex Salesforce

I have one vf page in which I have a requirement to display huge data but as we know Vf page has View state Limit as 135 KB , hence after reaching this Limit salesforce throws Exception as "Maximum ...
2
votes
3answers
1k views

CKEditor when used to rerender text area to rich text area breaks the binding with the controller

I tried using CKEditor to render the text area as rich text. But when I edit the text present in the editor, it does not sync back to the controller. Here is the code i used to make text area rich ...
2
votes
1answer
3k views

Need help creating an inline visualforce page who's content changes based on the opportunity stage selected

I was hoping I could get some help creating an inline visualforce page on my Opportunity page layout. The purpose of this page would be to display instructions to the sales rep based on the ...
1
vote
1answer
1k views

System.QueryException: error when button click second time?

vf page: <apex:page showHeader="false" sidebar="False" controller="textInputsCon" applyHtmlTag="true" > <apex:form > Input Text1 <apex:inputText value="{!inputText1}"/><...
1
vote
1answer
324 views

Campaign Member Javascript Button Help

I have created a custom conversion process that uses Visualforce. There is a custom button on the Lead page for conversion. I want that same button on Campaign Members that need to be converted, but ...
0
votes
1answer
530 views

apex:dynamicComponent rerender gives 500 Internal Server Error

I created a dynamic component: public Component.Flow.Interview getFlow() { Component.Flow.Interview flow = new Component.Flow.Interview(); flow.name = xx.Flow_Name__c; return ...
0
votes
2answers
280 views

How to restrict a <apex:inputField> for decimal value upto 5?

<apex:inputField value="{!expence}" styleClass="slds-input inputWidth August" onchange="updateAfterBlur();" /> Input - 12.22222 (Decimal value ...
0
votes
1answer
60 views

Display Relationships Between Lists on Visualforce Page

I have a list of strings. I am using these strings to populate three other object lists by querying for this string. For every iteration I am adding the lists populated to a List of lists. Ex: ...