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
12 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(){ ...
3
votes
1answer
27 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
9 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
38 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
26 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
48 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 ...
5
votes
1answer
47 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
19 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
59 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
13 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
21 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
24 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
43 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
21 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
46 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
38 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
41 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
49 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
33 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
74 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
37 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
42 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
72 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
57 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
65 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 ...
2
votes
2answers
157 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
163 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
40 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 ...
2
votes
1answer
42 views

Programmatic Form Creation Based On Data

Is it possible to dynamically create a form using data to control the types of input fields on the form using APEX/VisualForce and/or Javascript interop? In ASP.NET I'd programmatically add controls ...
3
votes
1answer
50 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 ...
1
vote
0answers
132 views

Custom object string field bind to date type

I have a custom object, that has a picklist (populated from accounts SObject) and a text field (call it 'Value') that is dynamic in nature. Now if the user selects name from => Value field would be a ...
5
votes
2answers
84 views

apex:detail title bug?

I've looked everywhere and it seems like I'm the only one with the problem. I've created a visualforce page and use apex: detail to reference my object. Everything shows up fine but I don't want ...
0
votes
1answer
530 views

How to Close Popup and refresh parent window in salesforce?

My requirement is whenever user clicks on some custom button on child window, that window gets closed plus the parent page should be refreshed. But only child window is getting closed and parent ...
1
vote
1answer
34 views

Custom VIsualForce Page Property

In layouts, there's settings for visualforce page when you click on the wrench icon to set width and height. Is there a way to add a custom property onto this wizard? Such adding a new checkbox ...
3
votes
2answers
815 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> ...
4
votes
2answers
1k 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 ...
0
votes
2answers
68 views

Vf Email Template

I want to send an email based on user specified language. For this we created an VF Email Template with custom label: <messaging:emailTemplate subject="15 Days of Salesforce.com Inactivity - ...
0
votes
0answers
46 views

how to handle Special Characters in salesforce email form?

In a VF page i am giving the input field value as >300. To send the email content to the user i am using tibco before sending the email content to Tibco, i am handling the all the html special ...
0
votes
0answers
66 views

How can i do this one live dragging in salesforce?

visualforce OLD code:IT was working fine with the code . <apex:page controller="customreport" extensions="Autocompletefields_custom" showHeader="false" sidebar="false" id="page1" ...
4
votes
1answer
118 views

Visual Force Page Not Displayed On SalesForce1 Community Version Only

I applied my custom VF page to a global action, works perfectly internally, however, when using the community the page does not display. The page has been checked for displaying on mobile, permission ...
3
votes
1answer
39 views

Get display name of the VF page through expression with $Page

Is it possible to get the display name of the visualforce page via expression like {!$Page.vfpage.name} or there are other simmilar ideas how to achieve this?
1
vote
1answer
139 views

Script for hidding outputPanel when pageblock section is collapsed

Here is what I am trying to do. We have a table which as several rows and columns. This table is placed under a pageBlockSection which is collapsed when the page is loaded using a script. What I ...
2
votes
1answer
48 views

pageblock is null when accessed from the action function called on click of a button present within the pageblock using Dynamic Apex

I have an apex:dynamicComponent binded to a pageBlock. In the apex controller, I add dynamic apex components like text boxes, checkboxes and command buttons to a dynamic panelGrid and then add the ...
0
votes
0answers
183 views

Subscript is invalid because list is empty

i am showing up with following in the visual force error I am checking the list is null or not but still i am showing up the with error "Subscript is invalid because list is empty" below is my code ...
2
votes
2answers
205 views

How to apply third “if” condition in styleclass?

I have a third class Class3 that needs to be applied for Status__c == 'In Progress'. This is my code. styleClass="{!IF(account.Status__c == 'Closed','Class1','Class2')}"/> Basically I'm ...
1
vote
1answer
234 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 ...
2
votes
2answers
64 views

<apex:pageBlockSectionItem> doesn't have id after it is rendered into html

I have a freaking strange situation. I set id for <apex:pageBlockSectionItem> tag but when it is rendered into html it doesn't have id. Other tags have but not this type of apex tag. Why? Is it ...
3
votes
2answers
152 views

Dynamically populate title based on description

I am working on a full customer portal but have run into a slight issue. I have to put a title on every page that is dynamic and can easily be changed by someone who does not code. I would like to ...
7
votes
1answer
147 views

FinancialForce component ? What are they ? how do they work?

I recently came across a custom financial force component <ffirule:IntegrationRule engine="{!engine}"/> which is very similar to custom visualforce components but don't they usually start with ...
0
votes
2answers
143 views

How to display two object fields into a single pageblock in visual force page

I have two objects - object A with fields "Name, Number and Quantity", And object B with fields "Amount, Order_c and Units_c". There is a lookup relationship between the two objects with field name ...