- Ajax Functions
- Controllers
- Parameter Passing
- Rerender, Rendered and RenderAs
New Batch#100 (10th Nov 2021) - Salesforce Admin + Dev Training (WhatsApp: +91 - 8087988044) :https://t.co/p4F3oeQagK
Subscribe to:
Posts (Atom)
Labels
- 15 digit sfdc id (1)
- 18 digit sfdc id (1)
- 5 minutes (1)
- 50 million records (1)
- A logical segment of your organization's data (1)
- a new record has created in patient object (1)
- Access to object in a test class (1)
- account (1)
- actionfunction (1)
- actionregion (1)
- actionstatus (1)
- actionsupport (1)
- Adding a custom button to page layout in sfdc (1)
- adding additional fields apart from the standard field for the search layouts (1)
- Adding fields to Search Layouts in SFDC (1)
- After deleting a record in master object what will happen for the records of junction object in sfdc (1)
- after triggers (1)
- aggregate query (1)
- Ajax Partial Page Updates in visual force (1)
- annotations (2)
- Annotations in SFDC (1)
- apex (44)
- Apex Classes (2)
- Apex Data Loader (5)
- Apex Data Loader errors (1)
- Apex Programs (3)
- apex:component (1)
- assignTo (1)
- Based on picklist selection (1)
- batch apex (5)
- Batchable Apex (1)
- Before event in trigger (1)
- before triggers (2)
- Bot (IBM Watson) with Salesforce Research (1)
- bulk api (1)
- bulk triggers (1)
- call apex method using javascript (1)
- call by reference and call by value in apex (1)
- Callout from APEX Triggers (1)
- Callout Integration and Apex (1)
- CAMPAIGNS (1)
- CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY (1)
- Cascading Style Sheets (1)
- case (1)
- Cast Iron (2)
- Change Case Owner VF Page (1)
- Changing hyperlink from one color to another color (1)
- Clicking on a commandButton multiple times in a row results in action being fired multiple times (1)
- Cloud Computing Basics (1)
- Collections (3)
- configuration (3)
- Controlling Data with the Force.com Platform (1)
- Controlling Recursive Triggers (1)
- copy field values of one object to another object (1)
- Creating a Many-to-Many Relationship (1)
- CRM (1)
- Cross object update trigger test coverage failure (1)
- css (3)
- CSS for changing the color of a hyper link (1)
- custom login page (1)
- Custom settings (1)
- Data Loader batch size (1)
- Data Loader CLI (1)
- Database .Batchable (1)
- Database.Batchablecontext (1)
- Database.executeBatch (1)
- Database.Stateful (1)
- dataloader (1)
- date (3)
- Date Method to get day of the week (1)
- Define and Insert Queues in Apex Triggers and Test Classes? (1)
- Defining a Manual Sharing Rule (1)
- Delete a record in Aura Datatable (1)
- Difference between 15 digit Id and 18 digit Id in Salesforce (1)
- Difference between abstraction and abstract (1)
- Difference between Interface and Abstract Class (1)
- Difference between Sales Cloud and Service Cloud in sfdc (1)
- Difference between salesforce.com and force.com and developerforce.com (1)
- Difference between SOAP and Restful Webservice (1)
- differentiation (1)
- Disable command buttons on click in visualforce (1)
- Dispaly particular field based on the selection of the particular field (1)
- Display pageblocks based on the picklist selection (1)
- Displaying pop-up summaries on hover in visualforce (1)
- Displaying text in td cell in multiple lines Salesforce (1)
- Div and Span html tags difference (1)
- divisions in sfdc (1)
- dml (1)
- dml statements not required for before events in triggers (1)
- DML Validations (1)
- due to one record entire batch will fail (1)
- Dynamic Apex (1)
- Dynamic Visualforce Naming (1)
- Enhanced List in SFDC (1)
- enterprise wsdl (1)
- Entity deleted (1)
- Error (5)
- exchanging data between heterogenious environment (1)
- execute (1)
- external id (1)
- External Style sheet (1)
- Field sets (1)
- finish methods (1)
- fixed headers datatable (1)
- fixed horizontal and vertical headers in datatable (1)
- for others it should be hide (1)
- Force.com GUI (28)
- Formula (2)
- formula fields (1)
- Gantt Chart (1)
- Generate PDF with apex trigger (1)
- Governor Limits (3)
- Governor Limits for single apex class or entire organization (1)
- Hide/show a pageBlock depending upon the button selection (1)
- hierarchical relationship (1)
- how can I execute 200 records each time in Trigger? (1)
- how can we do it? (1)
- How many ways we can call Apex Classes? (1)
- how to access the encrypted field values (1)
- How to create a site using Apex Code (1)
- How to deactivate security token to be enter? (1)
- How to disable inputfield at particular day? (1)
- How to disable/enable all validation rules for data loading (1)
- how to display corresponding pageblock on VF page (1)
- How to disply custom client-side error messages on VF pge (1)
- How to give the Pagereference for the Save and New ? (1)
- how to lock a record? (1)
- How to publish sites using siteforce? (1)
- How to pull values of records modified 7 days ago? (1)
- how to remove a value from list without using its index (1)
- How to send the failure information in a email for the Batch process? (1)
- How to show visual force error? (1)
- I have 1000 records (1)
- I want to retrieve the records of the custom/standard object of the current user (1)
- if we click any button that country information should only display (1)
- If you click on button a text msg should display on vf page (1)
- Illegal assignment from Account List to Account List (1)
- Inline Style (1)
- Inser failed: inactive user (1)
- Integration between Cast Iron and Microsoft SQL Server 2005 (1)
- Internal Style Sheet: (1)
- Invoking Callouts Using Apex (2)
- Is it possible to refer static resources files in formula fields (1)
- Iterable (1)
- java (1)
- Javascript with Visualforce pages (1)
- Latest Versions in SFDC (1)
- Lead (1)
- lead management (1)
- lightning (1)
- List usage in Apex (1)
- List usage in Salesforce (1)
- list views (1)
- lock (1)
- lookup relationship (1)
- Managing the Heap in Salesforce.com (1)
- Manual Sharing Rule in SFDC (1)
- Manually entered Date value in Apex (1)
- many to many relationship (1)
- Map usage in Apex (1)
- Map usage in salesforce (1)
- Mater detail relationship (1)
- maximum trigger depth exceeded MyObject__c trigger (1)
- monthe (1)
- Moving data from sandbox to production (1)
- Moving data from sandbox to production in sfdc (1)
- Moving pick-list values up and down (reordering) in javaScript (Works only chrome (1)
- Multilevel Master-Detail Relationships (1)
- Multiplication pattern with Apex (1)
- not working for Firefox and IE) (1)
- order of execution of triggers (1)
- Organization Wide Defaults (1)
- Organization Wide Defaults.OWD (1)
- outputpanel (1)
- ownerid (1)
- partner wsdl (1)
- passing dynamic content to system.schedule (1)
- Passing parameters between visualforce pages (1)
- Permission Sets (1)
- Permission Sets in sfdc (1)
- PG) we should use manual sharing (1)
- Pick List in VF (1)
- Pick List in Visual Force (1)
- Process Visualizer in SFDC (1)
- Products (1)
- Querying All Contacts from One Account (1)
- Queues in SFDC (1)
- Radio-buttons simple code (1)
- Random Password Generator (1)
- Record level security (1)
- recursive triggers (1)
- regular expressions (1)
- relationships (1)
- Report should be available only to CEO (1)
- Reports (1)
- rest ful (1)
- restful api (1)
- Retrieving information from child to parent incase of standard objects using SOQL (1)
- retrieving month value from date field in apex class/Trigger (1)
- Review Points in SFDC (1)
- Role hierarchy (1)
- Roll Up Summary Fields using Trigger After events (1)
- rollup summary (2)
- rollup summary programatically (1)
- Rollup Summary using triggers (2)
- runas in Dashboard (1)
- salesforce (1)
- salesforce standard object lead (1)
- salesforce standard products (1)
- salesforce.com (1)
- Schedulable Apex (2)
- Schedulablecontext (1)
- Scheduling Batch Class after 6 minutes whenever a batch finish method executed in salesforce (1)
- Scheduling batch class for every 5 minutes using system.schedule method in salesforce (1)
- schema (1)
- security (3)
- security token (1)
- select list in VF (1)
- select list in Visual Force (1)
- self relationship (1)
- Set usage in Apex (1)
- Set usage in salesforce (1)
- sfdc (1)
- SFDC Governor Limits (2)
- sfdc id (1)
- sfdc products object (1)
- Sharing a Record Using Apex (1)
- Sharing Rules (1)
- Sharing Rules in SFDC (1)
- soap (1)
- soap api (1)
- soql (3)
- SOQL contacts (1)
- Spring '16 Important Features (1)
- srinusfdc (1)
- start (1)
- static variables (1)
- string (1)
- substring (1)
- Summer 15 Release Notes Saelsforce (1)
- system.queryException (1)
- system.schedule (2)
- Testing Apex (1)
- The default workflow user in SFDC (1)
- to create custom change owner functionality for the case record (1)
- To disable other checkboxes in a section if one is selected. (1)
- To display all the fields of sObject using Apex and VF (1)
- To make the Sharing Button visible (1)
- To pass the parameters between the VF pages which have different controllers: (1)
- To perform arithmetic operations (APEX) (1)
- To perform arithmetic operations (VF) (1)
- To return to a same page with empty fields in VF (1)
- To share a particular record to a particular user (1)
- Transient (1)
- Translation Workbench (1)
- trigger (6)
- trigger context variables (1)
- trigger on related object field (1)
- Trigger to update a field in parent record once a task is created (1)
- Triggers (11)
- Try to access info. form sObj for which don't have permissions for user using trigger (1)
- uddi (1)
- Understanding Entity Relationship Diagram (ERD) in SFDC (1)
- Upcoming Posts in SFDC (1)
- Update a record on which we are writing the trigger (1)
- Upsert (1)
- Upserting data from Cast Iron to Salesforce (1)
- Usability: Fields and Page Layouts (1)
- Using 'If' condition in formula field of SFDC (1)
- Using Batch Apex to Change the Account Owners (1)
- Using Batch Apex to Change the Account Owners and call it from trigger (1)
- Using case in formula fields of sfdc (1)
- Using Cross-Object Formula Fields and Hyperlinks in formula of SFDC (1)
- Using Data Loader from the command line (1)
- Using Hierarchy Custom Settings in Salesforce (1)
- Using ISBLANK and ISPICKVAL in Formula fileds of salesforce.com (1)
- Using Regular Expressions in SFDC (1)
- Using the Import Wizard in SFDC (1)
- Validation Rules (1)
- Validation Rules in SFDC (1)
- validations (1)
- Visual Force Basic code (1)
- Visual Force Important Points (1)
- visualforce (28)
- VisulaForceError-System.QueryException: List has no rows for assignment to SObject (1)
- vlookup (1)
- We have three country buttons (1)
- web services (6)
- web services integrations (1)
- Whenever Opportunity stagename fieldset to 'Closed Won' (1)
- Workflow and Trigger differences (1)
- Workflow Rules and Approvals (1)
- Workflows is sfdc (1)
- Wrapper Class (1)
- wsdl (1)
- xml (1)
no view state for standard controller
ReplyDeletewe can create a vf page with in the component it will display viewsate.
Deletewe can create a vf page with in the component it will display viewsate.
Deletewe can create a vf page with in the form component it will display viewsate.
DeletePagenation:
ReplyDeletehttp://blog.redpointsolutions.com/bid/182738/Add-Pagination-to-your-Visualforce-Pages-using-the-SOQL-OFFSET-Clause
On VF Page maximum of 1000 records we can display.
ReplyDeleteTo dispaly name along with field type in case of standard controller put inputField in pageBlockSection:
ReplyDelete-----------------------------------------
Inlineedit Save freeze with VisualForce Apex:include
ReplyDeleteSolution:http://boards.developerforce.com/t5/Visualforce-Development/Inlineedit-Save-freeze-with-VisualForce-Apex-include/td-p/479327
Read Only attribute of VF Page:
ReplyDeletehttp://boards.developerforce.com/t5/Apex-Code-Development/System-LimitException-Too-many-DML-statements-1/m-p/444541#M80847
Too many DML statements: 151
DeleteToo many DML statements: 1
Deletea href dynamic url format:
ReplyDeletehttp://boards.developerforce.com/t5/forums/forumtopicprintpage/board-id/apex/message-id/61050/print-single-message/false/page/1
Pagination without using Offset in Saleforce:
ReplyDeletehttp://cloudforce4u.blogspot.com/2013/06/visualforce-component-for-pagination-in.html
http://salesforce.stackexchange.com/questions/14217/error-while-trying-to-use-sforce-apex-execute
ReplyDeleteSetting tab focus in salesforce:
ReplyDeletehttp://boards.developerforce.com/t5/Visualforce-Development/Visualforce-taborder-How-to-set-focus-on-the-first-field-if-it/m-p/510691#M56628
Redirecting VF Page using Standard Save button:
ReplyDeletehttp://salesforce.stackexchange.com/questions/3907/redirecting-back-to-original-page-using-visualforce
To check validation error messages for standard controller:
ReplyDelete!ApexPages.hasMessages()
Wrapper Class Sorting:
ReplyDeletehttp://www.tgerm.com/2012/05/apex-comparable-sorting-examples-part-2.html
Fetching Server URL in Visualforce Template:
ReplyDelete{!LEFT($Api.Partner_Server_URL_140, FIND('.com/',$Api.Partner_Server_URL_140)+3)}
Refer:
http://salesforce.stackexchange.com/questions/4696/trying-to-put-server-name-into-a-url-for-email-template
Setting the window size in javascript:
ReplyDeletewindow.moveTo(0,0)
window.resizeTo(screen.width,screen.height);
Use above lines in a function and call from window.onload = functionName
DeleteSetting Email Template in code without using settargerobjectid:
ReplyDeletehttp://techman97.wordpress.com/2013/10/08/sending-email-template-via-apex-no-targetobjectid/
Popup window using javascript with the screen full size:
ReplyDeletewindow.open('url' ,'','height=1000,width=1400,left=0,resizable=yes,scrollbars=yes', 0);
To make the page block table height constant:
ReplyDeleteapex:outputpanel layout="block"
div id="divsrchResults" style="height:200px;overflow:scroll;overflow-x: hidden;"
Pageblock Table.....
/div
/apex:outputpanel
using stypeclass value brandTertiaryBgr pbSubheader tertiaryPalette in salesforce:
ReplyDeletehttp://writeforce.blogspot.com/2012/10/improving-our-search-functionality-by.html
Typo: stypeclass* , styleclass
DeleteTo hide the field label in salesforce:
ReplyDelete 
javascript methods:
ReplyDeletehttp://stackoverflow.com/questions/7720061/window-opener-location-href-works-in-ie-but-not-chrome-or-safari
http://forums.asp.net/t/1198828.aspx
Capturing parameters in javascript:
'{!$CurrentPage.parameters.parameter names}'
Custom Section Header Icon in salesforce:
ReplyDeletehttp://blogforce9.blogspot.in/2013/01/custom-section-header-icons-for-vf-pages.html
Tab Icons reference names:
ReplyDeletehttp://free-121d5f44d20-121d603d1c5-121ee2b8103.force.com/force2b/salesforceicons
Customizing salesforce style:
ReplyDeletehttps://developer.salesforce.com/forums/ForumsMain?id=906F00000008muxIAA
Use below code to hide the salesforce header:
style
.bPageHeader {
display:none;
}
/style
Error due to Database.queryLocator: (after we keep it ideal):
ReplyDelete"this page uses a query locator that is invalid. there is a limit of 50 querylocators per object"
Inserting multiple records at a time in salesforce:
ReplyDeletehttp://bobbuzzard.blogspot.in/2011/07/managing-list-of-new-records-in.html
Good Advanced Pagination Salesforce:
ReplyDeletePrevious First 1 2 3 4 5 .... Last Next
http://demo.redpointsolutions.com/Dynamic_Visualforce_with_SOQL_Offset
Hiding header and side bar for standard salesforce record (not visualforce):
ReplyDeletehttp://mindfiresfdcprofessionals.wordpress.com/2013/09/page/2/
To display help icon symbol on visualforce page salesforce:
ReplyDeletehttp://mindfiresfdcprofessionals.wordpress.com/2013/09/28/help-icon-symbol-not-showing-in-visualforce-page/
Displaying Batch job status in salesforce:
ReplyDeletehttp://www.tehnrd.com/batch-apex-status-bar/
Salesforce News:
ReplyDeletehttp://blog.deliveredinnovation.com/salesforce-business-logic/
Server side pagination using wrapper class vusualforce page:
ReplyDeletehttp://www.sundoginteractive.com/sunblog/posts/server-side-pagination-in-apex-visualforce-for-custom-classes
Giving single quotes within the string:
ReplyDelete' FieldName like \''+String.escapeSingleQuotes(Fieldname)+'\'';
apex:page
ReplyDeletestyle
a {background:#ccc url("../img/sprite-icons.png") no-repeat scroll -360px -100px transparent;
height:14px; width:12px;}
a:hover { background:#f00 url("../img/sprite-icons.png") no-repeat scroll -360px -100px transparent;}
.readmoreall { height:20px; width:40px; background:#ccc; display:table; padding:0px 0 0 20px;}
.readmore {background:#ccc url("/servlet/servlet.FileDownload?file=01590000002qDgb") no-repeat scroll -355px -100px;
text-indent:-9999px; display:block; height:20px; width:20px;}
.readmore:hover { background:#f00 url("/servlet/servlet.FileDownload?file=01590000002qDgb") no-repeat scroll -355px -100px;}
style
div class="readmoreall"
a href="www.google.com" class="readmore">Read</a
div
apex:page
apex:page
ReplyDeletestyle
.myButtonLink {
display: block;
width: 50px;
height: 30px;
background: url('/servlet/servlet.FileDownload?file=01590000002qDwZ') bottom;
text-indent: -99999px;
}
.myButtonLink:hover {
display: block;
width: 50px;
height: 30px;
background: url('/servlet/servlet.FileDownload?file=01590000002qDy6') bottom;
text-indent: -99999px;
}
/style
a class="myButtonLink" href="#LinkURL">Leaf/a
/apex:page
Hi this is ThirupathiReddy
ReplyDeleteWhile clicking on a command button to avoid standard validations use immediate = "true".
ReplyDeleteClosing the parent window using javascript:
ReplyDeletefunction refreshParent() {
window.opener.location.href = window.opener.location.href;
if (window.opener.progressWindow){
window.opener.progressWindow.close()
}
window.close();
}
To display loading image when you click on a button, use below line within facet start (include in output panel along with command button):
ReplyDeleteapex:image value="/img/loading32.gif" style="height: 15px;"
To maintain fixed height & length for page-block use below line:
ReplyDeletediv id="results" style="height:200px;overflow:scroll;overflow-x: hidden;"
Number wise pagination
ReplyDeletehttp://demo.redpointsolutions.com/Dynamic_Visualforce_with_SOQL_Offset
DeleteBuilding an angular JS App:
ReplyDeletehttp://www.toptal.com/angular-js/a-step-by-step-guide-to-your-first-angularjs-app
Sublime Text Editor
ReplyDeleteRendering the pdf in different pages and giving page number for each page:
ReplyDeletehttps://help.salesforce.com/apex/HTViewSolution?urlname=Formating-VisualForce-Page-rendered-as-PDF-1327108686696&language=en_US
To send special characters(&, etc..) in the url use below format to send the values in VF pages:
ReplyDeleteEncodingUtil.urlEncode(Value,,'UTF-8')
Display all the lines of list in order:
ReplyDeleteli style="list-style-position: outside;"
VF-Stadrd contrl-without pring fields on VF page- if we user getRecord below error will come - It can remember only Id by default: Content cannot be displayed: SObject row was retrieved via SOQL without querying the requested field.
ReplyDeleteDisplaying number of records which are coming due to a rest call out on record detail page with inline visualforce, sometimes which is causing read time out error, to avoid this with onload of javascript, call controller class method display the status, oncomplete hide the status. To capture read time out error while making callout put in try and catch block
ReplyDeleteWe cannot edit the 'Save' button.
ReplyDeleteAfter saving, to navigate to some other url customize new button and append 'SAVEURL' to url.
ReplyDeleteAfter Saving the record, How to navigate to some other url apart from detail page?
ReplyDeletecustomize new button > append 'saveURL = /'
Note:
- saveURL is Case - Sensitive.
- URL encoding for / is '%2F'
If we click on cancel, how to navigate to some other url?
Customize new button > append 'restURL = %2F'
Note:
- %2F means '/'
- retURL is Case - Sensitive.
- in the same URL if we have both retURL and saveURL then if click on cancel it take retURL and if we click on save, it take saveURL.
Small correction: Customize new button > append 'retURL = %2F'
ReplyDeleteOverriding the buttons:
ReplyDeletefor the standard buttons, we cannot override button with java script only for the custom buttons, it will be available.
onload if we give url navigation, it is keep on looping, How to avoid this?
ReplyDeleteIn the URL please append 'nooverride=1' while overriding the new buttons please use vf page and in javascript include onload = function {document.location.href = url}
DeleteHiding the inline visualforce page: Use id of the visualforce page in javascript to hide.
ReplyDeleteUse the following script to hide the inline visualforce page:
Deletefunction fnName() {
var ifrm = parent.document.getElementById('Id of the vf page');
ifrm.style.height = "5px";
ifrm.style.visibility = "hidden";
}
window.onload = fnName();
Forming html inside of a string value:
ReplyDelete'tr'+'td'+'somevalue'+'td'+'td'+'somevalue'+'td'+'td'+'somevalue'+'td'+'td'+'somevalue'+'td'+'tr'
Note: Add less than and greater than symbols.
ActionSupport is not working:
ReplyDeleteFrom inside of the pageBlockSectionItem actionSupport won't work.
mouse event are not working:
ReplyDeletefor output Text mouse events won't work use output label.
Upon clicking on a button from the list of cases which belongs to a Queue with name 'Queue A' will be assigned to the requested user.
ReplyDeleteIf both the users request a same case at sametime (If it is in Sec gap) then first it it assigning to one user and then immediately it is assigning to other user.
But once the case is assigned to one user it should not be assigned to some other user.
For the above scenario take validation rule, in that mention if the previous owner doesn't belongs to the queue then throw the validation rule (Upon updating validation rules will fire). In the Controller Class exception block we can capture this error message.
Now in the actionFunction function take onComplete attribute which will invoke if we return null as pageReference in the controller class. (Note: If we don't return null then onComplete won't invoke).
From onComplete call a javaScript method by passing the boolean value as parameter (Note: make this boolean value as true if it enters in to the our validation error exception block). We should pass boolean value as parameter while calling javaScript function otherwise it won't take the latest value. If you print the boolean value in the alert then make sure that you are rerendering that javaScript code also from the actionFunction.
In javaScript if the boolean value is true then call the actionFunction one more time (For other exceptions we are not calling this one more time).
This actionFunction is getting call for the javaScript onLoad event.
This is an example of actionFunction Chaining.
DeleteDisplaying a window as popup:
ReplyDeleteapex:outputLink title="View detail in a popup window" onclick="return openPopup('{!acc.Id}');"Detailsapex:outputLink
script
function openPopup(id)
{
var newWin=window.open('{!$Page.Popup}?id=' + id, 'Popup',
'height=600,width=650,left=100,top=100,resizable=no,scrollbars=yes,toolbar=no,status=no');
if (window.focus)
{
newWin.focus();
}
return false;
}
script
Use escape for save url or else give asci code for &
ReplyDeleteWe should use URLENCODE() for both retURL and saveURL
DeleteFor inputField displaying error message on the page:
ReplyDeletediv class="errorMsg" style="display:{!IF(accountIdVal.hasError,'block','none')}">strongError:/strong {!accountIdVal.error}/div
Date format in Visualforce Page:
ReplyDeleteapex:outputText value=”{0,date,M/d/yyyy hh:mm a}”
Deleteapex:param value=”{!Account.createdDate}”
/apex:outputText
Currency symbol in Vf page:
ReplyDeleteapex:outputText value="${0, number, ###,###,###,##0.00}"
apex:param value="{!Account.Amount__c}"/
/apex:outputText>
Refer: http://blogforce9.blogspot.com/2012/12/currency-formatting-in-visualforce-page.html
Salesforce Standard Section Style:
ReplyDeletestyle
.detailList1 {
width: 100%;
}
.detailList1 .labelCol{
padding-right: 10px;
padding-left: 2px;
text-align: right;
font-size: 91%;
font-weight: bold;
color: #4a4a56;
width: 16%;
padding-top: 3px;
padding-bottom: 3px;
}
.detailList1 .dataCol{
width: 33%;
text-align: left;
padding-top: 3px;
padding-right: 2px;
padding-bottom: 2px;
padding-left: 12px;
text-align: left;
}
.detailList1 .labelCol1{
padding-right: 10px;
padding-left: 2px;
text-align: right;
font-size: 91%;
font-weight: bold;
color: #4a4a56;
width: 19%;
padding-top: 3px;
padding-bottom: 3px;
}
.detailList1 td{
border-bottom:1px dotted #ececec;
}
/style
table class="detailList1"
tbody
tr
td class="labelCol"Test1/td
td class="dataCol col02"Test2/td
td class="labelCol1"Test3/td
td class="dataColTest4/td
/tr
tr
td class="labelCol"Test1/td
td class="dataCol col02"Test1/td
td class="labelCol1"Test1/td
td class="dataCol"Test1/td
/tr
tr
td class="labelCol"Test1/td
td class="dataCol col02"Test1/td
/tr
/tbody
/table
To clone the record, please follow as mentioned below -
ReplyDelete------
cloneURL = '/'+recordId+'/e?clone=1
Advanced Visualforce Development with JavaScript:
ReplyDelete1. JavaScript Rmoting
2. Remote Objects
Refer:
https://developer.salesforce.com/events/webinars/advanced_visualforce_development?cta=text
Displaying Google Chart while generating PDF:
ReplyDeletehttps://anythingforeveryone.wordpress.com/2015/02/28/i-want-to-put-a-google-chart-inside-a-visualforce-page-rendered-as-pdf-is-that-possible-yes/
Communication between Visualforce Component and Visualforce page:
ReplyDeletehttps://developer.salesforce.com/page/Controller_Component_Communication
1. 1, 2, 3, 2, 1, 2, 3, 2, 1, ... generating with apex code?
ReplyDelete2. Upon clicking on account name related contacts should display.
Incase of using 'recordSetVar', for the child objects (contact, case, employee__c) we should give the id in url but for the Parent objects without id it can display all the records.
ReplyDeleteLightning Findings -
ReplyDeleteWe cannot refresh svg icons tables in VF page.
Reference: https://github.com/salesforce-ux/design-system/issues/47
In package custom fields are not recognizing after giving name space also.
ReplyDelete1. Used Remote Objects to query from the database but displayed 'full custom field API Name should be specified',
followed all the best approaches using shorthand for the custom fields, but not able to resolve the issue.
2. Directly used javaScript using sforce.connect still same problem
3. maintained the logic in apex class from the return type of the apex class, splitting the info. and displaying the information on the page.
4. Remote Object Model, sforce.connect will enforce user security.
Resolution: Finally found that for all the custom fields didn't give permission to any of the profile.
(while querying in the developer console also same problem came)
After giving permissions it started working.
LastViewDate Issue while querying from using SQL -
ReplyDeletehttps://success.salesforce.com/issues_view?id=a1p30000000T0tvAAC
apex expression in javaScript should be "{!variableName}" for String data types.
ReplyDeleteapex expression in javaScript should be {!variableName} for Integer data types.
Custom Permissions -
ReplyDelete1. Create a custom permission
2. Go to profile and navigate to custom permissions section and add the permission to profile/permission set
3. Refer the permission on VF page {!$permission.permissionName}.
4. In apex bit difficult syntax to use.
Calling Aura Method:
ReplyDeletewhile calling Aura method while setting parameters in JS Controller/helper param names should be same as controller class params.
Passing Parameters to ActionFunction -
ReplyDeleteWhile passing parameters through action function 'rerender' should be used or else parameters won't be passed. (will result in null)
Taking page back and forward -
ReplyDeletewindow.history.back() to go back to the previous page.
window.history.forward() to go to the next page.
Accessing visuaforce page url from managed package javaScript -
ReplyDeleteUse /apex/c__ApexPageName while invoking URL from the javaScript of the Managed package.
To fetch the portal name from the url -
ReplyDeletewindow.location.href.split('/')[3]
while deleting a custom permission, It is showing that referred in a page but not able to find the references.
ReplyDeleteSolution: Just edit the page and save it, it should be resolved.
Managed Package:
ReplyDeleteCannot add additional parameters for the global/webservice methods for the new version of the managed package
To get the data type of a field in the visualforce page
ReplyDelete$ObjectType[objName].fields[fld].Type
Opening the hyperlink in new tab within the cosole if it is in cosole -
ReplyDeletehttps://developer.salesforce.com/forums/?id=9060G000000XfF8QAK
Make sure to add includescript (script type="text/javascript") as below documentation -
https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_getenclosingtabid.htm
In line Visualforce Page:
ReplyDeleteIssue: On changing the drop down value in UI View (changing division which call a method which redirect to the same page), and edit the view is causing the problem -
"confirm form re-submission" blank screen in chrome browser.
Resolution: changing division which call a method which redirect to the same page --> in the redirect url in server use pr.setRedirect(true)
Cannot read property 'call' of undefined with google chart, issue is with the options.
ReplyDelete