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.
435
questions
0
votes
0
answers
12
views
Dataself Dashboard filter not working
I'm using DataselfBi, which is a Tableau subsidiary service. I'm trying to add a dashboard as a tab in Salesforce and when I try to filter it using the {!Account.OwnerId} as a filter parameter, and ...
0
votes
0
answers
45
views
VisualForce EmailTemplate With unrelated Custom object Data Needs to be sent as email
I have struck in a particular scenario where i need to showcase a data table of unrelated records in the email template.
Initially i have created the Email Template.
On click of a button in LWc im ...
0
votes
0
answers
29
views
unable to sync the selected radio button with apex contoller
I have created a visualforce page :
<apex:page standardController="Contact" extensions="ContactMergeSelectionController">
<apex:form >
<apex:...
0
votes
1
answer
59
views
Visualforce remoting not working when iframed
I have a VF page which is being used on a force.com site. It calls an apex method when the page is loaded using vf remoting. This is working fine when I open the URL directly in the browser. But when ...
0
votes
0
answers
39
views
How to introduce a line break dynamically in the cell for "Link to Documentation"?
The URL inside "Link to documentation" should go into the next line but despite having overflow warp, the text ends in the cell but does not enter the next line.
Could you someone please ...
0
votes
1
answer
20
views
I could not able to get table properly when table(page break occurs) continues to the next page when dynamically creating table in VF
I am created a table dynamically in apex and calling into the VF page, whenever table is long when it is moving to next page, I want it getS closed and create new header and repeat contents in next ...
0
votes
0
answers
207
views
Conditionally rendered fields
looking for general ideas on how to approach the requirements below:
"Create a Case" button/action on Account’s Lightning record page:
Ability to choose from different record types and ...
0
votes
0
answers
48
views
How do I remove the pop up upon clicking custom button referencing a visualforce page?
When i am clicking the custom button popup is coming and then redirecting to page.
<apex:page action="{!onLoad}" standardController="account" extensions="MyPage_Controller&...
0
votes
0
answers
132
views
How to use if else condition in VF Page
I am trying to use IF Else condition in VF Page. It is working for IF block but I am not sure how to use else block.
Scenario is IF(Field="Hard Hat"), Show check box image; else show ...
0
votes
1
answer
1k
views
embed an image with url aura component
Is it possible to display an image that has a URL link embedded in it within an Aura Component?
I am able to get the image to display in my lightning page, but I would like to have the image embedded ...
0
votes
1
answer
140
views
VF page with 2 search conditions
I want to create vf search page with 2 search conditions.
In Account object Type and Industry are 2 picklists. Based on these 2 fields I have to search and display records but I'm getting error when ...
-2
votes
1
answer
263
views
use method() from other apex classes into the VF page [closed]
Can we use method() from other apex classes into the VF page directly and by not using the controller of that VF page?
In Java, we can use package and do so, but I have no idea what to do with the ...
2
votes
0
answers
371
views
Dynamic Record Ids in Embedded Visualforce page within Lightning Record Page
We are working on an AppExchange app, where we need to embed the below widget code into Salesforce lightning record page.
<!--- EmbedWidget Visualforce Page -->
<apex:page controller="...
0
votes
1
answer
545
views
Show popup with confirmation button using addMessage and commandlink
I have a requirement where I have to create a popup (using addMessage) that display two options: confirm and cancel, each of these options has an action.
I already tried passing a command link in the ...
0
votes
0
answers
1k
views
How to prevent the symbol "&" from being replaced by "&" in the URL?
string redirectURL= URL+'OppId='+oppId+'&Country='+country+'&Lang='+lanag+'&Status=Approved&QuoteId='+quoteId;
As mentioned above is URL is used for a certain function. But when the ...
1
vote
1
answer
634
views
Using <apex:variable> to store a simple math division gives the error: Unknown property 'NCQuote__cStandardController.Multiplier'
I am having an issue storing the result of a simple math division of two local VFP variables into a third variable called Multiplier.
<apex:page readOnly="true"
...
0
votes
1
answer
746
views
how to add Space between 2 rows using panelGrid in visualforce page
I am using panelGrid for this UI.
Please fetch the code and Ui below and lt me know where I can add the css in order to increase the spaces between the rows.
I have used rowclasses attribute in the ...
-1
votes
1
answer
1k
views
How to conditionally call fields in a table in visualforce page?
I'm wanting to show on the visualforce page a table with the value of fields that I take from a list. However, some fields should only appear conditionally:
VisualForcePage:
<apex:repeat value=&...
1
vote
1
answer
318
views
To display month dynamically in visual force
here is my code. What I want is to display the month in format (Jan, Feb, etc.) in a visual force. My expected output is let's say today is September, so the dropdown value will have Jul, Aug, Sep, ...
0
votes
2
answers
964
views
How can I change the background color of the column header not the text of the header facet in an apex:datatable
I am trying below code in my 'apex:dataTable'.
<apex:dataTable value="{! Opportunity.Contract }" var="contract" styleClass="productsTable">
...
0
votes
1
answer
233
views
I'm trying to pass a string from an input text field on a vf page to the controller and display the results of an updated soql query
Hi I'm working on making a super simple vf page that has an input text field so that a user can input a tracking number and the results of the soql query will be displayed beneath it. Initially, my ...
0
votes
1
answer
514
views
Invalid field for SObject Account
Im trying to get editable fields and non editable fields and use them to iterate in visualforce using apex:repeat.
Apex:code
readOnlyFields = new List<SObjectField>();
accessableFields = ...
0
votes
0
answers
55
views
Error occurred trying to load the template for preview: Attempt to de-reference a null object
VF Contrller::
public class ComponentHandler {
public id DispatchId{get;set;}
public list orders;
public listvarStr;
public list ordItms;
public listcaseIds;
public list casess;
public List ordId;
...
0
votes
1
answer
516
views
rich text not formatted on vf pdf properly
I have created a vf page pdf and use a custom RTF field but on PDF it is not rendering properly
i tried outputText and OutputField tag but not able to fix the issue.
on Detail page Image is below
On ...
0
votes
0
answers
774
views
Static resources pdf file open in a new tab
I have one vf page pdf which is dynamic and there is another (staticTest_pdf) which i have stored in static resources. and my requirement is open both pdf after click on Action button (call Lighting ...
0
votes
1
answer
1k
views
Open model/dialog/VF Page/LWC Component from Salesforce trigger
Can we open model/dialog/alert/VF Page/Lighting component which is having yes/no button and a label from the Salesforce trigger?
I want to show a confirmation box with yes/no button from the trigger. ...
0
votes
1
answer
587
views
Insert parent and child record and reference parent in a single VF page
I have a VF page that inserts two records in a single page:
Insert recipient__c object with required fields: school__c
Insert scholarship_award__c object with required fields recipient__c, year__c, ...
0
votes
1
answer
57
views
Inner class property not seen in visualforce dynamic component
Apex Class
public class outterClass(){
// set properties
public List<innerClass> inners {get; set;}
outterClass(){
// set inners list values
inners = new public List&...
0
votes
1
answer
82
views
Do some controle before generating VisualForce PDF page
I designing a VisualForce PDF page and I am using a controller extension. The generation of the page happens by clicking on an action associated to an Object to show it's different fields' values.
I ...
0
votes
1
answer
227
views
OutputText for dynamic Value
<td >
Fees: <apex:outputtext value="{! If(abInsurance !=null,'Rs. {!abInsurance.charges__c}',If(xyInsurance!=null,'Rs. {!xyInsurance.charges__c}','None')) }"/>
</td>
Only ...
0
votes
1
answer
198
views
save button not working on pageblockTable column
I have added inlineEditSupport and save function to pageblocktable on Case object.
I want to save values in inputField "Case Review Notes" field (Case_Comments_On_VFReport__c). When I click ...
0
votes
1
answer
284
views
How to resize VF page [duplicate]
I did a VF page, to show a message. how can I resize it to fit full component? thank you!
this is the code I have.
0
votes
1
answer
981
views
Classic Email Template in Lightning Component - Insufficient Privileges
I used visual force components in classic email templates. Now I need to view those email templates in Lightning. So I have created Lightning component custom action to create a pop up and used iframe ...
1
vote
1
answer
250
views
How to store state and conditionally render UI of a VF component in JS
I am enhancing the app setup application to replicate Setup Assistant UI.
To build the expandable setup UI. I need to store the state(Expanded/Collapsed) of the component.
Normally in Aura/LWC, I ...
0
votes
1
answer
61
views
How do I pass the currentRecordId to the searchquery (Visualforce)
<apex:page extensions="SearchInVFShareholderVotes" standardController="Shareholder__c">
<apex:form>
<apex:inputText value="{!searchKey}" label="Input"/>
<apex:...
1
vote
1
answer
98
views
Parameterize apex:param value on a Visualforce page
I've got a list of fields that I want display on a Visualforce page.
I can get this to work:
<apex:repeat var="animal" value="{!animals}" id="lotsofanimals">
<...
0
votes
1
answer
271
views
How do I dynamically generate sections in visualforce page?
The objective is to have numberOfSections variable in the controller and then dynamically generate these sections on the vf page with the same format. How can this be achieved?
0
votes
1
answer
818
views
How can I remove New Button from Search Layout
How Can I remove new Button from Recently Viewed Search Layout in lightning experience .
0
votes
1
answer
39
views
Multi selection allowed failing in object describe
My code fails for multiselection of describe object iam getting following error.
System.NullPointerException: Attempt to de-reference a null object
Error is in expression '{!showFields}' in ...
1
vote
0
answers
54
views
Getting multiple lineseries component VF charting & dynamic VF
I have a requirement where I am asked to have multiple lineseries. The number of line series components is variable.
I tried Dynamic VF components with just one line series and this is the error
...
0
votes
1
answer
59
views
Visualforce Page : kindly read the info at the end of the code regarding pagination and Javascript function
Visualforce Page:
<apex:page sidebar="false" Controller="Invoice_details" showHeader="False" docType="html-5.0" readOnly="true" >
<html xmlns="https://www.w3.org/2000/svg" xmlns:xlink="...
0
votes
1
answer
29
views
Custom Controller methods which are passed an object
I'm outputting a list of Opportunites and want to create a hash, or checksum for some of the data in the object. Is there a way to pass the current apex:repeat object back to the controller to get it ...
0
votes
1
answer
58
views
visualforce pagination does not work [closed]
I mentioned the code below, when i click on next, first, previous or last, it does not work
visualforce code
<apex:page
sidebar="false"
Controller="Invoice_details"
showHeader="False"
docType="...
0
votes
0
answers
671
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 ...
0
votes
1
answer
884
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
1
answer
251
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
1
answer
406
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
1
answer
372
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">
<...
0
votes
1
answer
97
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 ...
1
vote
1
answer
1k
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" ...