Confirm button in Visualforce page in Salesforce
Sample Code: Visualforce page: <apex:page controller="SampleController"> <script> function callSave(){ var r = confirm("Are you sure want to save?"); ....
Sample Code: Visualforce page: <apex:page controller="SampleController"> <script> function callSave(){ var r = confirm("Are you sure want to save?"); ....
To avoid "System.QueryException: invalid ID field: null", before adding to a list or set, check whether you are adding null. For example, check the below code set<Id> acctIds = new ....
If CSS style is not working in apex:outputText, use apex:outputLabel. Cheers!!!
Currency format in Salesforce Visualforce Page can be done using apex:outputText and apex:outputField. Example: <apex:outputText value="${0, number, ###,###,###,##0.00}"> <apex:param value="{!a}" /> </apex:outputText> <apex:outputText value="{0, number, currency}"> <apex:param value="{!inte}"/> </apex:outputText> Note: ....
Sample Code: <apex:page standardController="Account" recordSetVar="accounts" tabstyle="account" sidebar="false"> <apex:pageBlock > <apex:pageBlockTable value="{!accounts}" var="a"> <apex:column value="{!a.Name}"/> ....
Add the Activity related lists: Sample Trigger: trigger EmployeeActivityTrigger on Employee__c (after insert) { List<Task> listTask = new List<Task>(); for(Employee__c emp : trigger.new) { ....
Sample Code: Visualforce page: <apex:page controller="Sample"> <style type = "text/css"> .colHeadr {text-align:center;} </style> <apex:pageBlock > ....
Sample Code: Visualforce page: <apex:page controller="Sample"> <style type = "text/css"> .colHeadr {text-align:center;} </style> <apex:form > <apex:pageBlock > ....
Sample Code: Visualforce page1: <apex:page controller="Sample"> <apex:form > <apex:pageBlock > <apex:pageBlockButtons > <apex:commandButton value="Next Page" onclick="show();"/> </apex:pageBlockButtons> </apex:pageBlock> </apex:form> </apex:page> Apex class: public class Sample { public Sample() { } ....
Sample Code:Visualforce page: <apex:page controller="Sample"> <apex:form > <apex:tabPanel id="theTabPanel" value="{!tabOpt}"> <apex:tab label="One" name="One" id="One"><apex:commandButton value="Go to Two" action="{!switch}"/></apex:tab> <apex:tab label="Two" name="Two" id="Two">content for tab two</apex:tab> </apex:tabPanel> ....