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

0
votes
1answer
18 views

Why isn't this dynamic VisualForce page style toggling the Static Resources properly?

I'm currently looking at the Dynamic References to Static Resources Using Mostly, it works as expected, with one anomaly: When the page initially displays, as expected, it correctly uses both the ...
0
votes
1answer
18 views

How can I write a unit test which includes ApexPages.StandardController methods?

Currently looking at the Using Dynamic References with Custom Objects and Packages tutorial. For reasons I won't speculate on, step 7 included the controller extension code (again) instead of the ...
1
vote
0answers
56 views

Enable/disable fields on create page based on picklist value using reRender

I'm creating a Hospital Management application that has a custom object GH_Patient__c. There is a picklist field GH_Patient_Type__c which has 2 values - In-Patient and Out-Patient. My Requirement is ...
1
vote
1answer
29 views

Dynamic values for picklists depending on profiles

I am building a piece of functionality where I need to filter a picklist depending on the user profile that access the functionality. The behavior I want to build is the following: User with specific ...
0
votes
1answer
14 views

Element viewStateWrapper with id = ajax-view-state must exist : Error

I have an visualforce page in which i am rerendering the apex form element on dropdown change. This page works fine until their is an validation error ( i am validating with jquery validate). Once ...
0
votes
1answer
23 views

Invalid parameter for function URLFOR

i have a requirement wherein I have a button on my VF page XYZ_VF 1.The button needs to open a create record page of an custom object 2.Also when the standard create page is displayed,its lookup ...
0
votes
0answers
41 views

Dynamic picklist column in pageBlockTable

I have a Visualforce page for an Order form in my Salesforce instance. The form includes a pageBlockTable for the products (line items) being ordered. So there is a button to add another line item, ...
1
vote
1answer
21 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
36 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
49 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
66 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
38 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
21 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
72 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
62 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
92 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
74 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
48 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
38 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
61 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
51 views

Convert Amount (currency ) field into words [duplicate]

Example: 1345 One thousand three hundred and forty five.
1
vote
1answer
76 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
61 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
1answer
94 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
86 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
116 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
51 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
64 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
67 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
54 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
82 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
1answer
24 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
163 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
161 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
181 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
102 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
29 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 ...
1
vote
3answers
857 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
34 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
61 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
55 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
135 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
59 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 ...
3
votes
1answer
107 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
70 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
80 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
140 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
62 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
183 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
183 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 ...