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
2
votes
2answers
1k views

Images are fetched from attachments for Visualforce page rendered as PDF displaying broken images

I am trying to fetch the images from the attachments and trying to display these images in a visualforce page which is rendered as pdf. But in the pdf I am getting broken images. If I remove the ...
0
votes
0answers
16 views

Dynamically assign values to VF page, render as PDF and attach it to mail

here is my scenario. From a method 'myClass1' I send Account, contact and a list of custom records to a method 'createEmailwithPDF' of another class - 'myClass2'. 'createEmailwithPDF' takes all the ...
1
vote
1answer
2k views

rerender attribute of command button not working to display charts

I have 3 apex:commandButton tags on my Visualforce Page. One of them displays text and the other two are used to display <apex:chart>. Now I don't know if it is possible but the chart that I ...
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. ...
0
votes
0answers
28 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....
8
votes
4answers
7k 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. ...
0
votes
1answer
22 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
3answers
361 views

How to map Dynamic sObject Mapping?

I have posted this question two times but i'm not getting the solution for that reason i'm again posting this question. First i have done the reading of two sobject fields dynamically. The two ...
0
votes
1answer
24 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
13 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
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 ...
0
votes
1answer
15 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
21 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" ...
1
vote
1answer
2k views

Can you use dynamic visualforce in VF email templates?

I tried to use an tag in a visualforce email template and got the following: Error: <messaging:emailTemplate> cannot contain <apex:dynamicComponent> Is there any way to get around ...
0
votes
1answer
428 views

CSS style issue for PDF in Visual force email template

I have one visual force email template which sends an attachment in PDF format. I have given style class for fields in the PDF, but the given CSS does not works for the PDF. Please help me out.
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, "...
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 ...
0
votes
1answer
2k views

How can i show multiple object records in listview

I have 3 unrelated objects like obj1, obj2, obj3. I need to display these three object records in listview based on created date. How can i do this..?
1
vote
2answers
550 views

Visualforce table display

I have created table using <table> tags. In that table Column Header values are coming dynamically from Apex class as a List<string>. While displaying it on the Visualforce page I am using ...
0
votes
1answer
886 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
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 ...
2
votes
1answer
529 views

How to display tabs within tabs in Visualforce?

I tried using dynamic Visualforce components to display tabs within tabs. But it does not seem to work. Apex Class: public Component.Apex.TabPanel getMyTabs() { Component.Apex.TabPanel myTabPanel = ...
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 ...
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
54 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
3answers
2k views

How to display records on a pageblocktable based on the value of a picklist field?

Hi i am new to salesforce. I want to display some records on a pageblocktable, which must be based on the picklist field. e.g. If i select Quarter4 from quarter picklist field pageblocktable must show ...
0
votes
2answers
52 views

Dynamically set columns on pageBlocksection and pageBlockSectionItem?

Page : <apex:page id="ContactDetails" extensions="ContactsController" standardController="Case"> <script> function showFieldsOnClickAction() { showFieldsAction();...
0
votes
2answers
20 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
41 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
24 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
30 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
59 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
77 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 ...
1
vote
4answers
11k 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 ...
0
votes
1answer
44 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
245 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
55 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
128 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 ...
9
votes
2answers
2k 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 ...
1
vote
1answer
510 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 ...
1
vote
1answer
904 views

Dynamic Visualforce Components: is there a smarter 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(){ Component.Apex....
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
75 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
98 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"...