Questions tagged [dynamic-visualforce]

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 standard markup, dynamic Visualforce components are designed in Apex.

Filter by
Sorted by
Tagged with
0
votes
1answer
86 views

Dynamic Visual Force binding duplicating data in apex:repeat

I am passing a string created in my controller to a VF page through dynamic binding in order to trigger the download of a CSV with the desired fields generated from the string. my code is as follows (...
4
votes
1answer
1k views

Search functionality in Visualforce Page

I am building a simple search functionality which can search records in salesforce using the record name. The search should happen as I key in the letter in search box. I searched in google a bit and ...
0
votes
1answer
134 views

Pass variable from a VF page to a controller

I'm new to visualforce programming and I would appreciate your advice on this matter. Basically, I'm trying to create a dynamic VF page that will change its content when a button is clicked. My VF ...
0
votes
0answers
130 views

Issue with dynamically rendering inputField from fieldset in Visualforce page

I have a page where inputFields are rendered from a fieldset on Opportunity object. When I load the page, it loads correctly. But when any server side action is done and page is re-rendered an error ...
1
vote
0answers
95 views

https://anysalesforceOrgurl/apexpages/apexcomponents.apexp

When you go to /apexpages/apexcomponents.apexp from your org instance, it redirects you to a page which shows all visualforce components of your org with component details and usage examples including ...
5
votes
1answer
226 views

Visualforce dynamic rendering based on Object Type

Imagine you have a collection of classes all extending a base type: public abstract class Vehicle{ public Position position{get; private set;} public String make {get; private set;} public ...
0
votes
1answer
322 views

How to read value in a Apex.InputText? (Without MVC)

Below is how InputBox in apex page which is not bound to any object. <apex:inputTextarea id='testtextinput'/> Below is the attempt to read the textbox input. String tempval = System....
2
votes
2answers
356 views

Unknown property 'SObject.Description' Error is in expression '{!FormObject.Description}' in component <apex:page> in page formgen_page

I did a small test program to dynamically populate a set of fields onto a Visualforce page, which can enable users to enter data from the form. Created a fieldset as below. Then I did an Apex page ...
0
votes
1answer
38 views

How do I create a VisualForce Apex page programatically from a method in a Visualforce class?

I'm trying to generate a Visualforce page for a certain data entry with certain controls and functionality which is essentially a dynamic controller page. Below is how I generate a page block. ...
1
vote
2answers
897 views

What is the correct way to type cast a dynamic SObject?

I'm trying to get the object type conversion as below. But getting compiler error saying Invalid Type t. Any clue to correct it. Thanks. obj_Name is String and Formobject is SObject. Type t = ...
1
vote
0answers
109 views

Is there any way to develop a report using apex class or visualforcepage?

I have created reports from salesforce using reports and dashboard tab. I want to create a report using visual force page so that I can join more than 5 reports. Is there any way to do this.
0
votes
0answers
301 views

Component.Apex.InputField error: Error is in expression

I get error below when I click on submit button of VisualForce page. Data loads perfectly into page. But submit button click causes exception below. Any idea why this is popping up? Unknown ...
2
votes
1answer
458 views

No Data showing in my data table. SLDS Visualforce

I am creating a page through Visualforce and the Lightning design system, and my data is not showing up, neither is the table itself. I have the header as it is built into the Product List Table ...
0
votes
1answer
302 views

Using Javascript how to sort the particular field Values in visual force page

How can i sort the ascending and descending the array of particular field(Date,Name,status,price..etc) values using java script in visual force page Best Regards
1
vote
1answer
64 views

Hide and Unhide groups of columns in visualforce like excel groups [closed]

I know that you can use the render attribute to hide and unhide groups, but I'm looking for an elegant solution to hide and unhide groups of columns similar to the excel group feature. Is there good ...
0
votes
1answer
274 views

Populate a Select List of Record Types based on Selected Record Owner's Profile

I am trying to create a visualforce form to create a new opportunity. I want the first action to be selecting the opportunity owner (not the current running user - one user will be creating ...
0
votes
1answer
144 views

Select multipicklist record from custom VF lookup page

I want to show selected user records details into the custom event vf page and users will Assigned To for event. Custom task VF Page: <apex:page standardController="Task" extensions="...
2
votes
2answers
1k views

Set Visualforce Picklist value from custom controller

i want to disply picklist value based on query value in my controller. but its display nothing . the code is like: <apex:page controller="Pre_process2"> <apex:form > <apex:pageBlock ...
1
vote
0answers
173 views

How to show SoftPhone layout into a custom VisualForce page?

I have a custom visual force page with a form to create a new lead when any new client call. The softphone call record is showing into left side of any pages in my salesforce environment, except into ...
2
votes
2answers
985 views

Red, Amber, Green (RAG Status) text color dependent on field number value in visualforce

Been trying to figure this out the whole day. I am new to VF and would like some assistance in figuring this out. I have a number value on a visualforce page that I would like to style with RAG ...
0
votes
1answer
382 views

Call Apex method from javascript on VF page via script tag

I'm trying to add an on-click for my apex:commandButton and what I want to do is call an Apex function from there. Essentially, I want to check if the the Apex function is true then I want to perform ...
1
vote
2answers
825 views

How to assign default value for dynamic pick list in visualforce page [duplicate]

i want to display all standard and custom objects in my organisation using visualforce dynamic pick list and i want to assign default value "Contact" at initial loading of page how to achieve these ...
1
vote
1answer
879 views

Assigning values to the inputfield in Modal PopUp

I have a Bootstrap Modal popUp containing an input field, in my visualforce page. I need to prepopulate the default value on that readonly input Textbox whenever user clicks the Deploy Product button. ...
4
votes
1answer
2k views

Javascript to calculate total at row and column level

I have a pageblocktable with one editable column in which numeric value for quantity will be entered. the next column to this is the Rate column which will have values from Salesforce. I want the ...
1
vote
3answers
1k views

Using Bootstrap Modals in Visualforce page

I am using a html modal PopUp in my visualforce page, which will be opened on a apex:commandbutton click. Also, I have few input fields on my PopUp window, whose values will be assigned on the button ...
1
vote
1answer
171 views

Create junction records through a grid UI for two objects

I have a good challenge for my fellow Salesforce Stack Exchange folks. I need to make assignment of questions for an inspection report to brands simple for the business to manage. I am using records ...
4
votes
2answers
777 views

How to show Columns of Visualforce Page Based on Custom Settings Fields?

So I got my Visualforce Page to display a table with columns (e.g. Version, Date, Type, etc.) as well as values from a dataset for each corresponding column of the next rows. I'm trying to integrate ...
0
votes
0answers
25 views

Problem In Delete Row Functionality

I am trying to create a functionality of deleting a row but getting an error Invalid Id... controller: public String sel_id{get;set;} public void DeleteRow() { Color_Coding__c cc = new ...
1
vote
0answers
379 views

Custom Button redirecting to a VF page using URL as a content souce with validation

I'm facing an issue in redirecting to a VisualForce page using a custom button in which the button content source need to be an URL which need to validate a particular filed is null or not. If yes,it ...
1
vote
1answer
490 views

Display fields added on page layout in vf page

I have more then 25 record types with different page layout. Each page layout is having different fields added on page layout. I have a vf page which is rendered as PDF. On this page I have to get ...
1
vote
2answers
862 views

display list of cases related to contact on service console left sidebar

We have email-to-case enabled and I have created a console to manage the cases and using custom console components, I am trying to display a list of cases related to a contact. I am trying to ...
0
votes
1answer
3k views

How do I send translated emails based on the language on the user record?

Just i want to send email content type multiple language. <messaging:emailTemplate subject="Confirmation Registration" recipientType="Contact" relatedToType="User" language="{!relatedTo....
0
votes
1answer
2k views

Fetch specific field value (e.g. Name) from dynamic sObject in Visualforce page

I've read many suggestions regarding retrieving values from sObject in controllers and classes. I want to know if I can retrieve a specific field value from an sObject (which could be an Account in ...
0
votes
1answer
474 views

Dynamic Describe Result

Schema.DescribeFieldResult field = Opportunity.StageName.getDescribe(); List<Schema.PicklistEntry> PL = field.getPicklistValues(); I am trying to do this:I want to replace field name ...
1
vote
1answer
49 views

Get the values of Visualforce page

I create a custom visualforce page where user inserts one value (i.e. Indirizzo__c). Now I want to add a button on the vf that create an Event (Salesforce standard Object) and fills one field, inside ...
2
votes
1answer
827 views

Visualforce URLFOR parameter binding

I'm trying to override the new case functionality to prepopulate certain fields depending on which recordtype the user selects. This is my visualforce action page: <apex:page standardController="...
1
vote
1answer
359 views

Saved Records in Read Only Mode on Refresh in VIsualforce

I have a VF page in which I am saving and adding the values through two buttons. Buttons are working fine. when i click the add button, a new row is added and when i click on save button,data is saved ...
0
votes
2answers
239 views

Show Saved Records in Read Only Mode on Refresh

I have a VF page in which I am saving and adding the values through two buttons. Buttons are working fine. when i click the add button, a new row is added and when i click on save button,data is ...
0
votes
1answer
305 views

Unable to set focus on <apex:inputText> inside an ouput panel of visualforce page

I am quite new to Visualforce and Apex. I am trying to set focus on the apex inputText field, placed inside an ouputpanel, which will be popped up based on an action function. I tried setting focus ...
0
votes
1answer
240 views

Image selection on VF Page

I have a 4 step wizard displaying images on visualforce page. I have created a text rich field on product with family as "t1", "t2", "t3", "t4" where I store images. I have to display images to my ...
-1
votes
1answer
134 views

Dynamic Visualforce Search Page

I'm running into two problems on my search page. Nothing is happening when I click the 'Reset' button and I am getting this error when I search using a date field: System.QueryException: ...
3
votes
1answer
717 views

Dynamic Visualforce page not showing Checkbox values correct after page reload

I have the following Visual force page: <apex:form id="mainForm" > <apex:actionFunction name="renderConsolePage" action="{!renderConsolePage}" rerender="out1"/> <apex:...
0
votes
0answers
184 views

View state in Visualforce components

I am developing a VF page which will have two components. These two components will be placed multiple times on the same page with different input parameters. I am not sure how much view state will ...
0
votes
1answer
330 views

Build Dynamic Search page for Custom Object ''Building''

I am a solo admin with no dev skills. We have a requirement to create a searchable page for our custom object ''Building'' they would like this page to allow user to search for building records, ...
1
vote
1answer
832 views

How to Format the numbers entered in the Input Text Fields

When i try to search with 1000000 and 1500000 in Price Min and Max fields.the soql query is executing fine.but when i enter the values seperated with commas like SFmin=10,00,000 and SFmax=15,00,000....
0
votes
4answers
272 views

Issue with apex:map

I have a map, Map<Id, Contact> contactsMap in my apex class where key is the contact id and value is the contact itself. I am iterating over this map in visualforce page to get the contact's ...
1
vote
2answers
597 views

Conditionally Render Input Fields from Component - Visualforce

I am trying to figure out how to render a Visualforce component containing inputfields conditionally, depending on a stage field outside of the visualforce page. I would like to render a different ...
-4
votes
2answers
2k views

display opportunity products in a table

i created custom button on opportunity object which will redirect user to a VF page which will populate some opportunity fields and a table showing related opportunity product details <apex:...
2
votes
0answers
418 views

Dynamic <apex:inputHidden> fields

I am trying to create a small VF page which displays a set of dynamic fields. Here is the controller: public class dynFields1 { public final Case casex {set;get;} public dynFields1(ApexPages....
2
votes
1answer
153 views

Dynamically determine type of input from controller

I have a custom object with a field named AnswerType that is a Picklist, and has possible values of Picklist, Text or Textarea. Essentially, the client wants to be able to ask the user a question in a ...