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
0answers
23 views

How do I display multiple fieldsets on a vf page using apex:repeat?

I have a custom metadata type with the following fields: Fieldsets referred Object Name I have a requirement in which I need to show these multiple fieldsets on a vf page for that particular object....
0
votes
1answer
19 views

How to display helptext on hover in apex:Column

I would like to display help icon,on hover display helptext in apex column header. Code: <apex:column HeaderValue="Description" width="24%"> <apex:outputField value="{!...
0
votes
1answer
21 views

Process an existing spreadsheet and output it in excel [closed]

I have a requirement where I need to store an excel workbook (with multiple sheets) in salesforce. Most probably in static resources or salesforce documents. Then when I click on a button on the ...
1
vote
1answer
23 views

How do you use a variable in the footer of a VF page?

In the code below, I want to include the account name in the left footer dynamically. If I have {!account.name} in the left footer, nothing displays there. If I do not include {!account.name} I see ...
0
votes
1answer
23 views

when i click on text its checkbox automatically checkbox must checked in visualforce Page

<apex:page controller="Apexclassforaccandcheck"> <apex:form> <apex:pageBlock> <apex:dataTable value="{!acw}" var="aa"> <apex:column><apex:...
0
votes
0answers
11 views

Visualforce Template Custom BCC field

I'm currently working with the Welcome email from a lightning community which is using a Visualforce email template which allows to be dynamic based on the user and experience offered in the community....
0
votes
0answers
10 views

Dynamic Filters on a dashboard

I have a custom object "Muse Product". This has 2 custom fields: Supplier and Supplier PO. I am trying to create a report that shows the number of POs a supplier has. Example, Supplier 1 has PO ABC ...
0
votes
1answer
14 views

Dynamic VF Binding error

I'm facing the exact same issue described here Error: Incorrect parameter type for subscript. Expected Text, received SetValue I'm trying to populate a table with a list of input fields, where the ...
0
votes
1answer
19 views

Embed visualforce page to existing layout

I am new to the salesforce and I want to do the same thing that this guys want to do: Embed a Visualforce page in a Standard Edit Layout But on the left side I am not able to see "Visual Force Pages" ...
0
votes
0answers
17 views

Nested Json Data on VF page salesforce

I have a json data in nested array object format.I want to show it on VF page in table format. my data formate is like: { "results": [ { "engagement": { "id": 29090716, "...
0
votes
1answer
25 views

How can the layout of a pageBlockSection be fixed in place so they don't move around when completed?

I have a pageBlockSection that moves/jumps up the screen when a value has been entered. How can I fix this and its contained inputField in place? If I use the following, when the field is changed the ...
0
votes
1answer
22 views

How can visualforce page lists be lists be dynamically filtered?

I need to be able to filter leads and opportunities based on a partial or complete postcode. When this is entered I need the Leads and Opportunities to only contain the matching rows. Page Layout ...
1
vote
1answer
53 views

List view button without standard controller

Is it possible to create a list view button without a standard controller? My requirement is, I want to create a List view button for any object. In the current scenario, I have to write the same ...
0
votes
2answers
47 views

Dynamically set columns on pageBlocksection and pageBlockSectionItem?

Page : <apex:page id="ContactDetails" extensions="ContactsController" standardController="Case"> <script> function showFieldsOnClickAction() { showFieldsAction();...
0
votes
2answers
19 views

Multiple Child Records from Parent Related List: Url No longer exist

I need to create Multiple Child Records from Parent Related List but i get the Error: "URL No Longer Exists" but the data saved in the database. Also, it seem that the Parent Id does not populate ...
0
votes
0answers
28 views

Dependent picklist not working when rendered in output panel of VisualForce Page

This is a small snippet of a bigger scenario. Here I have an empty div where I dump the full div section of the reRendered output panel. I am doing this so, because in my main codebase we have a ...
0
votes
0answers
22 views

URL for creating new listview of any object salesforce classic

URL to create new listview in Salesforce classic. https://naXX.salesforce.com/ui/list/FilterEditPage?ftype=c For contact ftype = "c", Account: ftype="a" and Case: ftype="t". How to get ftype value ...
-2
votes
1answer
28 views

Get object name when object tab is override by vf page [closed]

I'm thinking to write a dynamic vf page which will override the object Tab(Account). So how to know the object name in apex class. Once I got the object name then I will then i will perform remaining ...
0
votes
0answers
29 views

Visualforce page to create related custom record on Opportunity

I have this custom object that describes a Client Visit, and it's related to an opportunity (there's a Master-Detail Relationship on this custom object to the Opportunity object). I want to be able ...
0
votes
0answers
32 views

how to conditionally render a gauge chart based on values of a numeric array in Visualforce

controller--snippet if(pos >=0 && pos <assTElist.size()){ lstTrans = [select Maturity_Assessment_Question_ID__r.Transformation_Element__c fa, ...
0
votes
1answer
55 views

Wrapper list class getter setter issues

I am facing some challenges into the wrapper class for getter and setter. I have displayed some records based on question types like text, checkbox, and radio option. But when I clicked on a button ...
0
votes
1answer
40 views

Make tab Enable/ Disabled

In the Vf page where I created a tab. I want to make enable or disable if the checkbox is true.but my code is not working here is my code: <li class="slds-tabs_scoped__item tabs_scoped-li-2" ...
0
votes
1answer
64 views

Add Rows on table in Vf page

I am trying to add rows dynamically in my table in vf page. but when I try to do so it overlaps the current row. here is my controller class: public class BulkPaymentController { public String ...
0
votes
1answer
36 views

Dynamically set apex:inputField required attribute while using CSS to hide/show field

How do I dynamically set the required property on apex:inputField while using CSS to show/hide said field in order to avoid the validation error upon saving a form that has said field as hidden AND ...
0
votes
1answer
235 views

Displaying related object data dynamically on visualforce page

I need to display related object records dynamically on VF page but getting only last object records from list of sobject which I am using in ape class.Here is my code: Apex code: public class ...
3
votes
1answer
54 views

Any way to pass parameters to apex:dynamicComponent?

Related to this question How to keep components out of the Visualforce view state when they are not needed?, I have many apex:dynamicComponents in my page that I want to put slightly different content ...
6
votes
1answer
122 views

How to keep components out of the Visualforce view state when they are not needed?

The view state problem we mainly run into is not properties of the controller using it up (as we use transient heavily) but the component tree that the Visualforce tags generate using it up. That is ...
1
vote
1answer
470 views

sfdcIFrameOrigin parameter being added to Site url unnecessarily when using mobile

I have a Visualforce Page which is hosted on a Salesforce site. I am using a URL rewriter to make the URL into a friendly one. The page has a few parameters being passed into it (3 to be exact) and ...
0
votes
1answer
72 views

reRender problem In Visualforce page

I have one checkbox in an object I want to update that checkbox in visualforce page, I'm able to update that checkbox successfully using(command button) apex controller, but that problem here is I ...
1
vote
2answers
90 views

Hard coded images - How to convert

Our Salesforce Org is moving from na6 to na70 I have been trying to find a way to convert this: <img src="https://c.na6.content.force.com/servlet/servlet.ImageServer?id=12345678" alt="Get Support"...
1
vote
1answer
110 views

How can I dynamically add input fields in visual force on a button click?

I want to add a button "ADD NEW RECORD". When the button is clicked, a new row for input fields of accounts should be added along with the checkbox wrapped with it. How can this be done? EDIT: Also, ...
0
votes
1answer
128 views

Issue with Visualforce page email template subject line

I'm trying to send 3 different email using a single email template and visualforce component. I'm using rendered to display the text in html email vf component based on conditions. However, when I'm ...
0
votes
1answer
191 views

Dependent picklist error: “Validation Error: Value is not valid”

I have a table, where each Wrapper instance corresponds to each row of the table. On select of Project - tasks of selected project should be rendered. If i'm trying to pick task and add a new row VF ...
1
vote
1answer
49 views

Roll Up Fields On Table in VF PAge

I want to Display in roll up data in table of visualforce page. Scenarios: Table contain list of account types and every account have multiple fields. want to rollup every account types fields and ...
0
votes
0answers
47 views

Attempt to de-reference a null object on dynamic binding visualforce Component

Here I am trying to get related object and their fields dynamically.In debug I am getting related objects and fields but error is while loading VF page.Here is my code: Apex Class: public class ...
0
votes
1answer
49 views

Display Relationships Between Lists on Visualforce Page

I have a list of strings. I am using these strings to populate three other object lists by querying for this string. For every iteration I am adding the lists populated to a List of lists. Ex: ...
0
votes
2answers
210 views

How to restrict a <apex:inputField> for decimal value upto 5?

<apex:inputField value="{!expence}" styleClass="slds-input inputWidth August" onchange="updateAfterBlur();" /> Input - 12.22222 (Decimal value ...
1
vote
1answer
52 views

Dynamically switch from inputfield to inputcheckbox for number field

I have an object field that is of number data type, based on a picklist value in the parent object field I want to render in the visual force page as an input check box. If the check box is checked ...
1
vote
1answer
28 views

Is it possible to grab buttons on record page from Apex to parse button URL merge fields?

We are letting users select certain buttons that contain a URL in our application. That button now accepts merge fields. Handling '{!Object.field}' and '{!$User.field}' and '{!Today()}', and '{!Now()}'...
0
votes
1answer
102 views

VF Page : How to display totals for each Opportunity when grouped by Opportunity Type?

I am trying to display a table in visualforce page. The table contains list of Opportunity Lines and totals Account —> 4 Opportunities (with Oppty Type as New Business and Add-On). First Oppty —> 3 ...
0
votes
1answer
859 views

Setting multiple selections on a dynamic created <ui:inputselect>

I'm sure I'm missing something obvious here but I'm trying to set all dynamically created iputselectoptions as selected when my lightning component is initialised but I'm finding that nothing is set ...
0
votes
1answer
59 views

SLDS Tab Error msg issue in VF page

I have created 4 SLDS Tabs in a Visualforce page and every tab contains some required fields which are generated by fieldset. the problem is that when I clicking on NEXT button showing error ...
0
votes
1answer
71 views

Display dynamic calculated field names in Visual Force page [closed]

I have an object as objDates with field names as Day1__c, Day2__c and so on till Day366__c. I'm using DayOfYear() to access the field values dynamically. I'm able to read(get) and write (put) values ...
-2
votes
1answer
39 views

Assign row values from one object to another object as columns or fields

I have row values as dates in one object, i.e dates within a given year. I have a second object with field names as Day1__c, Day2__c and so on till Day366__c. I want to assign the dates to the fields ...
0
votes
1answer
141 views

Why my csv file is blank?

I try to pass on a list to a new visualForce page and then display that list as a table to download as a csv file. But I am getting blank csv file. As soon as i redirect to my new page the list gets ...
0
votes
1answer
96 views

SLDS in Visual Force - How to render a conditional div?

I have a slds-grid that I want to display conditionaaly I tried <div class="slds-grid slds-wrap slds-gutters" rendered="{on condition true}"> doesn't work, condition is correct. Tried using '...
0
votes
0answers
28 views

User-specific settings page for managing boolean inputs 1:1 for each field in a dynamic describe of fields?

There is a managed app on the Appexchange and it solves a limitation by employing a "Track History" concept to give admins a boolean setting specific to each datafield on User object (for the purpose ...
0
votes
1answer
992 views

Assign Ids dynamically to Apex:inputField

I'm trying to assign Id to my inputField dynamically, those input fields are coming from field sets. These Ids needs to be assigned to those fields which are required in database. On giving Id ...
1
vote
0answers
257 views

Generate Excel in Salesforce Visualforce/ Apex

Has anyone done Excel file generation in Salesforce with bit complex formatting? If so appreciate any guidance or reference. I already tried formatting with CSS and having the contentType="...
0
votes
1answer
107 views

How to Display Records in vf [closed]

in Controller i get the ContactRoles from opportunity through a listview but how to display ContactRoles in vf page public AccountListViewExtension(ApexPages.StandardSetController controller) { ...