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
0answers
33 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
22 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
27 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
34 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
35 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
31 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
19 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
33 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
12 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
43 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
45 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
76 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
55 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
20 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
83 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
18 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
26 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
29 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
57 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
27 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
50 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
44 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
48 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
64 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
36 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
88 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
52 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
57 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
92 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
75 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
72 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
184 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
217 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
42 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
46 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
55 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
161 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
89 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
713 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
35 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
1k 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
2k 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
82 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
51 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
71 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
132 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
42 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
161 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
213 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 ...