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 ...

learn more… | top users | synonyms

1
vote
1answer
13 views

How to “unrender” an OutputPanel with required fields on

I've overridden the new Opportunity page and I have a dynamically generated picklist of Contact Names and a static value "New Contact". When "New Contact" is selected a new panel is displayed with ...
0
votes
0answers
30 views

Error while trying to create a dynamic visual force page

I am trying to create a dynamic visual force page and am referring https://developer.salesforce.com/page/Dynamic_Visualforce_Components I am getting the below error when trying to save the class: ...
0
votes
1answer
30 views

I want to create a custom formula field using apex

I want to create a field in which user is going to put the formula(through picklist ). For Eg: a+b*c\d or if(condition)) then a= b+c Where it is working fine with normal ...
0
votes
1answer
39 views

How to display 1 out of 2 possible fields values in same column : visual force

I have a column that needs to display date if there is no condition else display a combination of text+date if a criteria is met. I have to append a text Week Of to a date field if a custom field ...
0
votes
0answers
20 views

How to pass parameters to dynamic components that reference custom components

The code below from salesforce documentation shows how to pass parameters (attributes) to custom components <apex:page> <c:myComponent myValue="My component's value" borderColor="red" ...
0
votes
1answer
16 views

Currency field to words

I got this apex code for converting numbers to word but want to display this in VF using standard controller and extension. public class NumberToWord1 { public ...
2
votes
0answers
53 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]}" /> ...
1
vote
2answers
49 views

Customization of managed package visualforce pages?

Does anyone know of any way to provide a managed visualforce page inside a managed package that customers can override with their own visualforce page layout and/or controller logic? Any concrete ...
4
votes
1answer
59 views

Dynamically load a custom component in Visualforce page

I have a custom component called MyComponent that I could add to my visualforce page by using <c:MyComponent />. This is done in a static manner i.e. I need to have it in my visualforce page ...
0
votes
1answer
45 views

based on picklist value render a field

I have bee trying to render a field based on lead status value like 'Cancel/Rejected'. if i select Cancel value it should display field A, if i select value Reject it should display field B. please ...
0
votes
1answer
35 views

How to circumvent validation without using immediate=true?

I have a VF page that is used as override page for New and Edit of CustomObject__c. On this page the user can also create and edit child records. All of them are rendered editable in the pageblock ...
0
votes
2answers
26 views

Why can't managed Visualforce access unmanaged Field Set?

I'm hoping to use Field Sets to allow users of a managed package to customize the display of a Visualforce Page. The idea is that they install the package, create their own Field Set on the one of the ...
0
votes
1answer
43 views

Vertically Scrolling Visualforce Dashboard Component

I'm trying to get a Visualforce dashboard component to scroll vertically. The scrollbar track shows up, but no scrollbar. Any thoughts? <apex:page Controller="RoleUtils" showChat="false" ...
1
vote
1answer
39 views

Convert Amount (currency ) field into words [duplicate]

Example: 1345 One thousand three hundred and forty five.
1
vote
1answer
54 views

Converting Date Into words and displaying using visual force page

I am trying to convert date in words as shown below: 10/07/2014 TENTH Day of JULY, TWO THOUSAND FOURTEEN
1
vote
1answer
59 views

Resource for Learning Dynamic VF

I am looking for a good place to learn dynamic VF. I did google it but did not find anything great. Does anyone know of a good resource where i can learn? Thanks.
2
votes
0answers
53 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 ...
0
votes
1answer
52 views

how to use two standard controllers in a single visual force page

I need to save two objects that have parent child relationship , using a single visual force page. And also I need to pass values to the controller from the form both parent and child object's ...
3
votes
1answer
79 views

Dynamic Component Select Radio Selected Value

I have built a dyanmic component as selectOption (select radio with select option values). I need to know how can I access the selected value? (which radio button is selected?) Below is my code VF ...
2
votes
1answer
45 views

Display VF custom components with user-defined order

We want to allow users to add/remove modules (custom components) from a VF page and set their order of display. We will use a dialog similar to the standard SF one (see image) on the front-end and ...
0
votes
2answers
55 views

Catch state of custom check box field in Apex

I have a custom object MyObject__c I've added a custom field which is of type check box. one__c If a system admin ticks this checkbox on the object in the Salesforce UI, I want an apex element ...
5
votes
1answer
50 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 ...
0
votes
1answer
47 views

Dynamic Visualforce Components: is there a smater way to add childComponents?

Playing around with Dynamic Visualforce Components I found it inconvenient to create child elements in such a bulky notation public Component.Apex.OutputPanel getNavPanel1(){ ...
4
votes
2answers
58 views

System.VisualforceException: Invalid value for property label: null

Sigh. So I am required to cover my Apex code with tests. I'm testing a piece of code that dynamically builds a tree of controls with a PageBlock as the root object. This code works fine when NOT ...
0
votes
0answers
16 views

Probability and forecasting fields are not filling by default in Custom Opportunity VF page..?

In Custom VF Page for Opportunity, when selecting Stage field.. Probability and forecasting fields are not filling by default. In Standard Opportunity page, if we select Stage field.. by default ...
1
vote
2answers
96 views

Display the fields properly in output panel while using actionRegion

I am using actionRegion for to show/hide the fields based upon picklist in Opportunity. When i am selecting the Stage picklist value is Closed Lost, then 4 text fields will be displays. It works fine. ...
1
vote
1answer
101 views

Display error or warning message without ApexPages using Global Component

I have a simple form , which has a output panel and pageMessage inside it . <apex:form> <apex:outputPanel id="errorPanel"> <apex:message id="msg" /> ...
1
vote
2answers
165 views

Change field visibility based on Opportunity picklist value

When i select stage picklist value as "Closed Lost" in Opportunity, then i want show text fields. By-default these text fields will be hide. I tried so many ways but i didn't get. tried using ...
6
votes
1answer
85 views

apex:dynamicComponent - Correct type of a component

Situation I want to implement a dynamic, dynamic custom component in visualforce and apex. Therefore I created a new component: <apex:component controller="SidebarController"> ...
1
vote
1answer
25 views

Dynamic Text when Account Detail Page loads

I want to decide to show/hide a particular text when an Account detail page is loaded, based on the user logged in. How can I achieve this i.e. making a decision when the account detail page is ...
0
votes
3answers
376 views

Get Current Record ID in URL field like ApexPage.currentPage().getParameter().get('id')

I have object XYZ__c where I have created one button-URL with formula {!URLFOR("/apex/myVFPage?id="+**HERE I WANT TO PASS ID FROM CURRENT PAGE**)} which we usually do using ...
1
vote
1answer
24 views

Dynamically generated VFP attach to the Case : Too many Content Calls

I have to save the Dynalmically generated PDF from VFP on the Order Object I am trying to attach PDF in contructor call only For the given code I am getting error : Too many Content Calls public ...
2
votes
1answer
49 views

Custom Tab design in salesforce

Is it possible to have a custom look and feel for the tabs in salesforce? If I have to create a visualforce page, I just want to change the look and feel of the Tabs and pages but the functionality of ...
1
vote
1answer
42 views

Add a “button” next to a column header

Probably I'm refering to a commandLink. <apex:pageBlockSection columns="1"> <apex:pageBlockTable value="{!blabla}" var="bleble"> <apex:column ...
0
votes
1answer
98 views

Rename standard object field label in visualforce page

I am using standard object User field 'UserPreferencesHideS1BrowserUI' in one of my Visual force page. If you see in your user settings, its labeled as 'Salesforce1 User' but when I use this field api ...
0
votes
1answer
50 views

Add Standard/Custom fields to Visual Force/Apex

Problem: Click on your name in salesforce -> My Settings -> Personal -> Advanced User Details Here there are some standard check-box fields (i.e. Marketing User, Salesforce user, Force.com flow ...
2
votes
1answer
70 views

Upsert using wrapper class? Products not getting selected after checking the checkbox

I have written the following code to upsert the selected records using Wrapper classes. But I am getting Null Pointer exception . I am not understanding what I have missed. Please suggest. How can I ...
0
votes
0answers
59 views

Saving Dynamic rows to an Object on checking the checkbox

I have an Order Object , Product and a Junction Object OrderProduct. I have used as inline vf in Order Detail page and I want to capture the Product Details in that Inline VF and then save the Order ...
0
votes
2answers
67 views

Updating data using dynamically generating rows and a static section

I have two section in which one is dynamically updated rows... I need top create cases using the first section and each row of the dynamic rows generated. I have used the following code but I am not ...
0
votes
1answer
109 views

Visualforce Page refresh lags current value of search filter

I'm relatively new to Salesforce development and am having trouble with a Visualforce/Apex Class page. The page pretty much works, except that I have a filter which should sort data by date. However, ...
0
votes
1answer
51 views

possible solution for “You cannot call addFields after you've already loaded the data” - error

I've seen this error and researched it and this is not happening because of a test. If you're getting this error because of some unit tests look at this Bob Buzzards Blog here My problem is ...
3
votes
1answer
135 views

Selectoptions used in SelectCheckboxes shows the checkboxes in a single Row

Selectoptions used in SelectCheckboxes shows the checkboxes in a single Row. I need to show the checkboxes in different rows. Ho can this be acheived. My code is : <!-- Page: --> <apex:page ...
0
votes
1answer
113 views

Visualforce Editable Related List Save Error

I am currently working on a Visualforce related list of ProjectTasks__c to put on the page layout of the related object Milestone__c, with an editable column for the status field, allowing users to ...
0
votes
1answer
88 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 ...
3
votes
1answer
136 views

Visualforce error Not Serializable: Component.flow.interview

i am using dynamic Visualforce component created in Apex public with sharing class Sample3 { public Component.Flow.Interview flow{get;set;} public Sample3(){ flow= new ...
0
votes
0answers
127 views

Using Dynamic Visualforce onChange to call an actionFunction

I am trying trying to assign the onChange event of a SelectList from Apex to a VisualForce actionFunction, but it causes an error when I load the VF page: System.VisualforceException: Value assigned ...
1
vote
3answers
93 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 ...
3
votes
2answers
285 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 ...
7
votes
2answers
528 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 ...
3
votes
1answer
59 views

Dynamic Form How To Process Saved Posted Values

I fear this is a path well trod, littered with the bodies of dead developers. Upvote me if you too have wasted time on this. So I've got a page rendered programmatically by adding textboxes, labels ...