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
17 views

window.open not support resizeable in visualforce page

In a VF page, I have a custom button which opens apex page in new window when clicked. This works fine in chrome. But when I test the same in IE the window opens but the maximize button is disabled. I ...
0
votes
0answers
12 views

Unable to download image which is stored in attachment

I have used below code,but is not working in my vf page <a href="{!URLFOR($Action.Attachment.Download, attachmentId)}" class="btn btn-info"> Download </a> AND <a href="/servlet/...
0
votes
1answer
18 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
0answers
21 views

Get Field Value of next Record in Visualforce Page

I have a below scenario, I have a case object were on page I trying to display the related field values. But for one field called SRF, I need to look on next record. For Example: Case 1 -----------...
0
votes
0answers
22 views

Need to retain the value select in the first picklist while also having the proceeding picklist created not display the value select?

I have a picklist that is being populated dynamically how can I have it so that when I select the value for the first picklist it stays when I add the second picklist which has the same value of the ...
0
votes
1answer
26 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 ...
0
votes
0answers
12 views

is it possible to handle apex:input onload event

Is it possible to handle onload event in js? I have this element inside the repeat <apex:input type="text" style="width:100%" html-data-edit="true" rendered="{!field.isEditing}" value="{!...
1
vote
0answers
20 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
0answers
16 views

SelectOptions works in Chrome but not in IE

I have used apex:SelectOptions for picklist in my VF page to fetch the values from class where the logic is written to set the default value for the picklist. This works fine in Chrome but not in IE. ...
0
votes
0answers
36 views

how to select all checkboxes by one checkbox in header

visualforce <apex:pageBlock > <apex:pageBlockSection showHeader="false" id="B" columns="1"> <apex:pageblocktable value="{!InvoiceList}" var="rs" id="A"> ...
0
votes
1answer
40 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
1answer
20 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
1answer
38 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
0answers
19 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
0answers
69 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
85 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
28 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
30 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
40 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
15 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
25 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
16 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
40 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
21 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
28 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
23 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
67 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
93 views

Dynamically set columns on pageBlocksection and pageBlockSectionItem?

Page : <apex:page id="ContactDetails" extensions="ContactsController" standardController="Case"> <script> function showFieldsOnClickAction() { showFieldsAction();...
0
votes
2answers
26 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
72 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 ...
-2
votes
1answer
34 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
1answer
97 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
59 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
232 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
107 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
437 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
82 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
226 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 ...
2
votes
1answer
732 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
107 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
181 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
286 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
200 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
322 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
60 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
64 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
69 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
374 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
63 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
29 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()}'...

1
2 3 4 5
9