Line break character may be escaped by JS in VF Page
- Nov
- 13
- Posted by Lin
- Posted in APEX, Salesforce, Visualforce
The line break character may be changed, if it is sent from Visualforce Page with Ajax(Such as apex:commandLink and apex:actionfunction). Let me show you a sample first. Sample Code Visualforce Page Apex Class Results Click [Compare By Submit] button, and the compare result is “true”. Then click [Compare By Ajax] link,we will find the compare […]
read moreDisplay DateTime with TimeZone in Visualforce Page
- Jul
- 24
- Posted by Lin
- Posted in APEX, Salesforce, Visualforce
In Salesforce,Date and Date/Time values are stored in GMT,and a GMT time will be outputed when we use apex:outputText tag. e.g. Result ※Time Zone : (GMT+09:00) Japan Standard Time (Asia/Tokyo) As we know,we can not determine a user’s time zone in a formula,but there has two ways to fix this with Apex,maybe more. 1.Get User […]
read moreUse Salesforce Mini Page Layout in Visualforce Page
- Jul
- 22
- Posted by Lin
- Posted in Salesforce, Visualforce
Mini Page Layout is a nice feature of Salesforce,it can be maintained for every parent object in master-detail or lookup relationship in order to display additional record information without jumping to its detail page. Enable Mini Page Layout First,navigate to Customize > User Interface and check “Enable Hover Details” which can enable Mini Page Layout […]
read moreRefresh standard detail page from visualforce page in iframe
- May
- 12
- Posted by Lin
- Posted in Salesforce, Visualforce
We may need to refresh the whole page but not only itself, when we use custom visualforce page in standard detail page,and it will not work well if we just use ‘location.href=”/”‘ by javascript. Let me show it in this post. The Problem 1.Prepare a custom object named Sales__c 2.Add an Apex Class “ExtendPageController” 2.Add […]
read moreOrder of execution in Visualforce Page
- May
- 11
- Posted by Lin
- Posted in Salesforce, Visualforce
In this post I’ll show you the order of execution when we views a Visualforce page. Apex Class Visualforce Page Result Log So,In conclusion: 1.Controller constructor 2.Page action 3.Controller property getter
read moreDate format and DateTime format
- Apr
- 24
- Posted by Lin
- Posted in APEX, Salesforce, Visualforce
Date format in Apex 1.Use Date format method 2.Convert to String directly 3.Convert to DateTime DateTime format in Apex Date format in VF DateTime format in VF Date format in Formula DateTime format in Formula TZoffset is the difference between the user’s time zone and GMT。 When in Tokyo:TZoffset = “9/24” Reference : https://help.salesforce.com/help/pdfs/en/formula_date_time_tipsheet.pdf
read moreA way to make Thread Sleep in Apex
- Mar
- 30
- Posted by Lin
- Posted in APEX, Salesforce
Sometimes we need make apex thread to sleep for a while, sush as testing if the soql with [For Update] works,and as we know the sfdc do not offer a method to sleep the thread. Then I thought it may work if I use the “while”, like the following code. Well, it looks not bad. […]
read moreHow to access static resources from Apex, Visualforce and Custom Button
- Feb
- 26
- Posted by Lin
- Posted in APEX, Other, Salesforce, Visualforce
In Apex Normal file (with soql) Normal file (with PageReference.getContent) Zip file (with PageReference.getContent) ※Zip file can not be accessed by soql. In VF Normal file Zip file In Custom Button
read moreSFDC SObject Quick Panel – Quick access to Salesforce Standard Objects and Custom Objects
- Jan
- 20
- Posted by Lin
- Posted in APEX, Open Source, Other, Salesforce, Visualforce
As a SFDC Developer,how do you open [Custom Object Setting] page, from [Setup] > [Create] > [Objects] > [Object Name] ? In fact,utilizing “sObject Quick Panel”,it could be more fast only need 1-Click. Screenshots Source code Download from Github That is all, Enjoy it!
read moreSalesforce Apex Zip Attachments With JSZip
- Dec
- 10
- Posted by Lin
- Posted in APEX, Open Source, Visualforce
Sometimes we need to zip Attachments or PDFs and download it at once in Salesforce development. As we know, Apex does not support Zip. it is conceivable that Zip files with other service such as Heroku or AWS, But in fact we can do this without any External Service, just Salesforce and JavaScript. This post […]
read moreRecent Posts
- Salesforce DevTools Release Notes (version 3.10.0) – mass edit custom fields on lightning
- Salesforce DevTools Release Notes (version 3.9.0) – Object Fields, SOQL Query Editor
- Salesforce DevTools Release Notes (version 3.8.0)
- Salesforce DevTools JUST HIT 10,000 USERS! THANK YOU!
- Using Promise for Apex Server-Side request in Lightning Component
Top Posts
- Salesforce DevTools – Powerful Salesforce developer tools, loved by over 50K developers - 219.6K views
- Date format and DateTime format - 204K views
- Salesforce Mass Editor (Chrome Extension) – Mass create, mass update, mass clone, mass delete on any list view. Support for both Classic and Lightning! - 158.4K views
- Setup an awesome Salesforce developer environment with Sublime Text 3 - 122.3K views
- Writing a Schedulable Batch Apex in Salesforce - 118.8K views
Categories
- APEX
- Apps
- Custom Label
- Custom Metadata
- Custom Setting
- Design & UI
- Event
- Heroku
- iOS & Object-c
- Lightnint Component
- Linux & Mac OS
- Metadata API
- Node.js
- Open Source
- Other
- PHP Framework
- Release Notes
- REST API
- Salesforce
- Salesforce DevTools
- Salesforce DX
- SOQL
- Tooling API
- Unit Tests
- Validation Rule
- Visualforce
- WordPress
You must be logged in to post a comment.