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
30 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
33 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
30 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
36 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
21 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
57 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
21 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
30 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 ...
2
votes
1answer
46 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
35 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
58 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
104 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 ...
6
votes
2answers
105 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
32 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
34 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
49 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
96 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
67 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
248 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
30 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
394 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
898 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
60 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
40 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
62 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
97 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
34 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
115 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
44 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
145 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
191 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
157 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
59 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
149 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
146 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
119 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 ...
2
votes
1answer
88 views

Create new Visualforce page dynamically

I want to define and create a new VF page dynamically, in Javascript or Apex (or whatever I can use). Is this possible at all? If so what technology allows this (e.g. Metadata API) and is there a ...
2
votes
2answers
326 views

Can we achieve the cascading pageblock section style in Visualforce page? let user click on (+) corresponding subsection should expand

Can we achieve the cascading pageblock section style in Visual-force page? let user click on (+) corresponding subsection should expand in fashion in image attached.
0
votes
1answer
203 views

apex:dynamiccomponent returning a value

I am tying to achieve pagination using command buttons as dynamic components. but i want to return the value of the button number to my controller so it can return the same page. Can anyone please ...
1
vote
1answer
252 views

How To Show Help Text Within a apex:pageblocksectionitem From Within a Dynamic Component

So recently, I came upon an issue using my dynamic component within a pageBlock. As some may know, you cannot properly display help text (icon with a help text when you hover), within a ...
1
vote
1answer
76 views

How I can add rendered comdition on dynamic apex?

This is my code. I dont want to display the records which having null Id. I am adding this value on pageblocktable. Component.Apex.outputLink link = new Component.Apex.outputLink(); ...
1
vote
1answer
264 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 ...
1
vote
1answer
98 views

Show name in place of of id on rendered as pdf

<apex:repeat value="{!$ObjectType.Account__c.FieldSets.Page}" var="f"> <td> <B> <apex:outputText value="{!f.Label}: "/></B> <apex:outputText ...
2
votes
1answer
315 views

OutputPanel Not Serializable with DynamicComponent

I'm having an issue trying to use dynamicComponent. I'm trying to display an outputPanel, but getting a SerializationException. I'm trying to accomplish this with the following code: In my page I ...
0
votes
1answer
2k views

Dynamic Search Using Visualforce Page

I have followed the instructions from this blog (http://blog.jeffdouglas.com/2010/07/13/building-a-dynamic-search-page-in-visualforce/) on how to create a table with dynamic search parameters and I ...
6
votes
1answer
423 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 ...
0
votes
2answers
77 views

how to develop User friendly url in salesforce

how to develop User friendly URLs in salesforce and while clicking on this it should redirect to that particular visual force page. please consider below sample ...
0
votes
0answers
473 views

How to disable the “New” button on a related list in a VF page [duplicate]

I have a Visualforce page which displays a related list of child objects. The list, however, displays the "New" button, which I need to remove. Is this possible, or am I stuck with building a custom ...
0
votes
1answer
1k views

Onchange from visualforce unable to get the value from Javascript

I have VF page as below <apex:page standardController="Stack__c" extensions="Controller" tabStyle="Account"> <script> function foo(data){ alert("Call came ");//this is displyed ...
0
votes
1answer
57 views

sorting trailing 12 months values

I want to show a chart which shows revenu trend of trailing 12 months. In my dataset, I have Month and Year in String format i.e. month has values like "1", "2" etc and year has values like "2013", ...