New answers tagged visualforce
0
votes
Print/Download PDF from VF Renderas=PDF in Lightning Experience
I have the solution, I am using the javaScript download function in two ways
Visualforce page:
<apex:page controller="VFPageDownloaderController" action="{!downloadAutomatic}"&...
0
votes
How to generate and download file(text) in visualforce page
I resolved this problem,I am using the javaScript download function in two ways
Visualforce page:
<apex:page controller="VFPageDownloaderController" action="{!downloadAutomatic}"...
0
votes
Text file download in Visualforce page
I resolved this problem ,I am using the javaScript download function with two ways
Visualforce page:
<apex:page controller="VFPageDownloaderController" action="{!downloadAutomatic}&...
0
votes
Visualforce email template table row conditional with no controller
You have:
<apex:outputField value="{!IF(rx.Type__c == 'Online', rx.Training_Start_Time__c, '')}"
You can't do this -- apex:outputFields can't be dynamically specified in an IF block
...
0
votes
LWC not showing when calling inside VF Page Salesforce
While there might be more errors than this within the priceConfiguration component, the lightning:navigation component is not supported in VisualForce pages.
Here:
Descriptor Lightning:navigation | ...
0
votes
SOQL: Convert set to list
If someone like me enjoys using the array notation for the lists like:
Id[] ids = new Id[]{};
instead of,
List<Id> ids = new List<Id>();
to create a list from a set would be as the ...
0
votes
Modified rows exist in the records collection! in Visualforce using input:TextArea
I resolved this by clearing modified fields by JS before call Next or Previous Action. For example:
<apex:actionFunction name="onNextPageAction" action="{!netxPageAction}" ...
0
votes
Iterate map using apex:PageBlockTable
apex:pageBlockTable already acts as an iterator, so you don't need (nor want) apex:repeat to get involved here. Every instance of apex:column creates a new column, so you end up with a multiplicative ...
0
votes
Standard List Controller extension not working
Salesforce Documentation for setSelected --> https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_sosc_access_data.htm
2
votes
Accepted
Embed LWC component in visualforce page and load lwc component onclick of a button in classic
According to the docs you need to specify the component as a dependency:
<aura:application extends="ltng:outApp" access="global">
<aura:dependency resource="c:...
0
votes
Varied Column Widths in Visualforce Table
For anyone that finds this in the future: the solution was to create two separate tables, right after each other. The first has the header and the column that I want to be wide, then ends. The second ...
0
votes
Accepted
Adapt the heigh of an iframe window for an embedded chat inside a VFP
SOLUTION
I used event AfterMaximize and AfterMinimize from chat event notifications , got the parent Iframe and then changed the height. This is an none elaborated example just to show :
embedded_svc....
0
votes
Error when trying to mass convert leads with Apex
The problem is you're converting the leads in a loop. This is a Flow-based version of "executing DML in a loop" that you'd find in Apex. Collect all of the Id values into a Collection ...
-2
votes
How to query child to parent
we can understand it by an example. We have Account and Contact Object and we know that the relationship between them is lookup relationship.
Note : This relationship has one property called ...
0
votes
Adapt the heigh of an iframe window for an embedded chat inside a VFP
It appears as if your CSS is being applied to the iFrame and not to just your button. We cannot see all of your solution so it is difficult to be specific - but you need to avoid setting the z-index ...
0
votes
I have a visualforce page where i am displaying map of accounts using apex:PageBlockTable
Your code is far too complicated for your objective - no map is required
public class ShowAccountsController {
public Account[] getAccounts() {
return [SELECT Id, Name, .. FROM Account];
}
}
...
1
vote
I have a visualforce page where i am displaying map of accounts using apex:PageBlockTable
The map that you are iterating has the counter as the key and the value is a list of Accounts. As the Value part of the map is a List you need to iterate over that list and get each node's value.
The ...
0
votes
Error "Attempt to de-reference a null object " when receiving a list
You need to initialize the list first:
if(headContasName==null){
headContasName = new List<String>();
for(Oportunidade_de_Negocios__c i:getOppNegociosAll()){
headContasName.add(i....
0
votes
Best approach to replace onclick javascript button for classic
You can replace button URL:
/apex/ApexStart?a=accorto.ProjectLineNS&m=updateProject
&n=projectId&v={!accorto__Project__c.Id}
&r=/{!accorto__Project__c.Id}&q={!URLENCODE('...
0
votes
Accepted
Salesforce VF page: apex:repeat returns data and blank fields
Note that you are outputting something of value conditionally otherwise, you are outputting just empty value. Since you have div repeats for each outblock, it will show up as div with empty output ...
1
vote
Accepted
Update variable in a JS Static Resource
In JavaScript, each imported file is isolated by default. However, you can access any global variable, one attached to window, to work with data and methods from that file. In your case, you can use ...
0
votes
Best approach to replace onclick javascript button for classic
You can do this in a VF page associated to the button:
<apex:page standardController="Account"
action="{!IF(Account.Name<>'foo',
NULL,
...
0
votes
Opening report in new tab/window in Analytics reportChart
I also experienced this issue for anyone navigating to this page after countless hours of scouring the internet. I am happy to share a solution that worked for me.
First, you will need to create two ...
3
votes
Break space not working for Arial Unicode MS in Visualforce Page
word-wrap was introduced in CSS 3
The library that Salesforce uses to turn Visualforce into PDFs, Flying Saucer, only supports up to CSS 2.1
You'll need to do something else to prevent your text from ...
0
votes
Embed LWC row buttons in Visualforce? Actionfunction oncomplete not working
Just to follow up, I decided not to waste more time and scrapped the idea of embedding LWC in VF rows. Instead, I created SLDS buttons from scratch. It is way easier if you stop trying to figure out ...
2
votes
Accepted
How to Update List of Account in visualforcepage?
There is a simple solution that uses most of the standard salesforce classes.
On your custom controller, make use of StandardSetController by feeding it the query to benefit from pagination, get ...
1
vote
Accepted
How to make attachment required field?
Use the below JS code to put the validation on your inputFile tag.
<apex:inputFile id='inputFile' value="{!attach.Body}" fileName="{!attach.name}"/>
<apex:commandButton ...
1
vote
How to make attachment required field?
Sure, just use the required attribute:
<apex:inputFile accept="doc, txt, pdf"
filename="{!fileName}"
contentType="{!contentType}"
value="{!afile}"
...
0
votes
Accepted
Visualforce display a related list from a lookup field on a custom object
You can do this without any Apex controller just by exploiting the standardController for Inventory_Skid__c
<apex:page standardController="Inventory_Skid__c">
<apex:relatedList
...
Top 50 recent answers are included
Related Tags
visualforce × 16413apex × 7147
javascript × 1617
controller × 760
visualforce-component × 743
community × 447
lightning-aura-components × 440
lightning × 428
jquery × 416
soql × 393
pdf × 373
dynamic-visualforce × 336
css × 317
controller-extension × 316
email-template × 286
force.com-sites × 284
rerender × 268
html × 266
salesforce1-app × 263
custom-button × 236
custom-object × 226
pageblocktable × 192
page-layout × 190
trigger × 188
javascript-remoting × 187