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

2
votes
2answers
39 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
20 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
35 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
131 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
126 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
32 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
39 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
99 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
64 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 ...
0
votes
1answer
105 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
51 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
124 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
40 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
139 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
566 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
181 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
51 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
175 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
308 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
37 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", ...
0
votes
0answers
77 views

Dependent Picklist Multi Select

I have Two pick list(Multi select) Country and State in Contact . in country field i have (India, Australia, New Zealand, Pakisthan, Bangladesh, Uk, America) in States picklist field i ...
1
vote
0answers
129 views

How to apply pagination and sorting with custom list views on visualforce page

Pagination and sorting is not working when creating custom list view on visualforce page(using selectlist)
0
votes
0answers
66 views

How to set custom order of a series

I have to create a very specific chart. The details are as follows: The chart should show trailing 9 months of Revenue and future 3 months of goals. i.e. considering current month (Jan, 2014), the ...
2
votes
1answer
105 views

Pass List of sObject to VF email template / Best way to get just inserted records

Looking for assistance to my approach here. What I'm trying to do is set up a notification such that when a user clicks a button to insert records, it will include data from the newly inserted records ...
0
votes
2answers
77 views

Input Field Visibility based on Profiles in VF Page

I have Created a VF page to display the data in a table, based on the Search which will be given in the input Text box.I need to make the text box visible only for the admin profile and make it hidden ...
1
vote
1answer
106 views

VF Displayed on Objects when the Object creating and Updating [duplicate]

This is my woking Code VF Page: <apex:page standardController="Account" extensions="NewAndExistingController" id="demoId" > <apex:form > ...
1
vote
1answer
176 views

Creating dynamic filter report in salesforce .want to get results in the same page?

<apex:page > <html> <form method="get" action="https://cs6.salesforce.com/00ON0000000FOHS" > <b>Enter Text</b><input type="text" id="pv2" name="pv2"/> ...
3
votes
4answers
772 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 ...
4
votes
2answers
182 views

Variable number of cells over fixed # of columns in VF

I want to render up to 9 images in a panel, where each image is a commandlink. There is logic in the controller that determines which images/values are appropriate in the given context. I have the ...
2
votes
1answer
117 views

How can i create dynamic filtering report with the user input?

I need to get the pc0 and pn0 and pv0 from the user input fields <apex:page> <html> <script type="text/javascript"> function changeText2(){ var userInput0 = ...
2
votes
2answers
286 views

i had a problem with the alert message

<apex:page standardController="opportunity" rendered="{!opportunity.stagename='Offer'}"> <script type="text/javascript"> { window.alert("Please update the field 'Specific Pricing'. ...
2
votes
1answer
417 views

How to submit all wrapper class records using datatables.net jQuery plugin & apex dataTable?

I am using the [datatables.net][1] jQuery plugin with an <apex:datatable /> and I want to submit all records checked from the dataTable meaning i'm using <apex:stylesheet ...
1
vote
1answer
51 views

How can i back through action button without required input Field error?

This is my first question. I have some doubts about one trouble. I saw that it could be there a duplicate question, but i'll try anyways. My vf page code is below: <apex:form > ...
9
votes
4answers
928 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 ...
0
votes
1answer
62 views

I am generating letter from visualforce page in french-

I am generating letter from visualforce page in french à is changing into the character of à . like the same way two to three characters are getting changed while generating the letter .can some ...
7
votes
2answers
1k views

apex:inputField on Lookup Values

I'm trying to build out a flexible, custom search engine as a component, but am stuck. I want to be able to specify filter fields in a comma delimited input attribute (strFilterFields in my code) and ...
3
votes
1answer
431 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 ...
9
votes
2answers
456 views

Adding visual force page to a custom object based on criteria

There is a custom object called Competitor. For this object there is a field called "Primary Competitor (Data type:Check Box)". Requirement:if primary competitor=checked-->then before saving it has ...
3
votes
2answers
904 views

adding CSS styles to apex:inputcheckbox

I am trying to achieve a simple thing but somehow not able to get the desired result, may be due to my amateur CSS skills. I have an apex:inputcheckbox and all I want is, when someone selects this ...
6
votes
1answer
1k 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 ...
4
votes
2answers
803 views

Using javascript to change or remove pick list values on VF page

I'm wondering if this is possible to do. I have a VF page embedded on a standard page layout that creates quick sales objects. Now the page displays all values for 4 dependent picklists but I'd like ...
1
vote
4answers
87 views

Styling Account Detail Page

My requirement is to show the account detail page in red color based on the value of a picklist field in account object. How can i do that? I know that we can override a the detail page and apply ...
2
votes
2answers
425 views

Dynamically render a pageblock title

I am wondering if there's a way to dynamically render the title in the pageblock- something like this: <apex:pageblock title="{!account.name}"> </apex:pageblock> From the visualforce ...
2
votes
1answer
800 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 ...
2
votes
2answers
1k views

Show “Processing” message or image after clicking checkbox

Having Issue with checkbox onclick and show processing. Problem is that we can have status="mySaveStatus1" associated with but how can we associate status="mySaveStatus1" with ...
7
votes
4answers
637 views

How do I unit test an Apex controller method for dynamic components?

I have an Apex controller method that returns a Component.Apex.OutputPanel for use in a <apex:dynamicComponent /> tag. How do I do a unit test that asserts that the controller is outputting the ...
1
vote
1answer
582 views

Can we have group header for two apex:columns while using pageblock table?

My requirement is to get a common header for two apex:columns. I am iterating over pageblocktable. I know i can use apex:facet for individual apex:column but i dont what to repeat the same header ...
1
vote
1answer
179 views

Running APEX methods in Visualforce, is this possible?

Maybe I'm just misunderstanding the capabilities of the Visualforce APIs and the use of functions in VisualForce but I'd like to do something like this: Looking at the Rendered tag: <apex:page ...
2
votes
1answer
57 views

What's an EL Expression?

So I'm playing with dynamic Visualforce components, tried adding an id like so: Component.Apex.InputField f = new Component.Apex.InputField(); f.expressions.id = 'source'; And got this error ...
2
votes
0answers
203 views

Repeat tab containing dynamic components within an apex:tabpanel

Suppose we have n tabs within a tab panel in a visualforce page. All of the tabs contain the same markup, but their content is dynamic. So far the only way we have found to build this is to copy and ...