Visualforce関連
Zip attachments only with Apex in Salesforce
- Sep
- 07
- Posted by Lin
- Posted in APEX, Salesforce, Visualforce
Before this post (about 2 years ago), I’d shared a post that is about how to zip attachments with JSZip and Apex in Salesforce, and recently I found a more simple way to do that thing, which is only using an Apex library named “Zippex” ( view on Github). Here is the outline of my […]
read moreUsing HTML tag(e.g. line break) in Custom Label
- Jul
- 12
- Posted by Lin
- Posted in Custom Label, Salesforce, Visualforce
Custom Label is a really useful feature in Salesforce, not only can be edited after deployed, but also can be used for making an app multilingual with Translation Workbench. If you want to use HTML tag with it on Visualforce Page, e.g. <br /> tag, the only thing you need to do is using an […]
read moreCatching and customizing Apexpages Messages in Apex
- Jul
- 08
- Posted by Lin
- Posted in APEX, Visualforce
As we know, apex:pageMessages tag can be used to display all messages that were generated for all components on the current page, presented using the Salesforce styling, as the following source code we use: Controller Class(CommunitiesSelfRegController) Visualforce Page(CommunitiesSelfReg) But how do we customizing the styling of messages, if those were generated from Salesforce Standard components, […]
read moreDisplay Address type field on Visualforce Page
- Apr
- 06
- Posted by Lin
- Posted in APEX, Salesforce, Visualforce
Address is an especial type of fields in Salesforce, which is a structured compound data type, that we can’t use it directly on Visualforce page. And there will occure a compile error like “Unsupported type: common.api.soap.wsdl.Address used in expression: record.BillingAddress”, if we did that. As the code sample below, we need to use fields BillingStreet, […]
read moreDetermine odd or even row in apex:repeat loop
- Mar
- 08
- Posted by Lin
- Posted in Salesforce, Visualforce
Sometimes we need determine if the index is odd or even in tag, such as showing table row in alternate color. There’s a simple soluton as below code: Enjoy it!
read moreCalculate the difference between two DateTimes in Salesforce
- Dec
- 25
- Posted by Lin
- Posted in APEX, Other, Salesforce, Visualforce
In Formula Calculate the second difference between two DateTimes. In Visualforce Page Calculate the second difference between two DateTimes. In Apex ※A “Date/time arithmetic expressions must use Integer, Decimal or Double arguments” error will be occurred, when we subtract between two DateTimes directly like Formula.
read moreCreate Roll-Up Summary field to count Contacts on Account with Process Builder and Flows
- Dec
- 09
- Posted by Lin
- Posted in Other, Salesforce, Visualforce
As we know,roll-up summary field is used to display a value in a master record based on the values of fields in a detail record. The detail record must be related to the master through a master-detail relationship. Unfortunately Account and Contact objects only have a lookup relationship so we cannot create roll-up summary field […]
read moreLine 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 moreSalesforce reRender dose not work with rendered attribute
- Aug
- 20
- Posted by Lin
- Posted in Salesforce, Visualforce
Salesforce reRender will not work, if we’re going to hide reRender target with rendered attribute of itself, as the following sample code. In my opinion, reRender will reset the target DOM Node but not replace it after AJAX request completed,that means we can reset it’s childNodes even it’s html attributes, but cannot remove it.So there […]
read moreSalesforce RemoteAction and webService
- Aug
- 07
- Posted by Lin
- Posted in APEX, Salesforce, Visualforce
In Salesforce,we can make asynchronous requests from Visualforce Page,via RemoteAction or webService. I will share you the usage of RemoteAction and webService In this post. RemoteAction Using RemoteAction(JavaScript Remoting) allows us to call methods in Apex controllers and get a callback with return data from JavaScript. The @RemoteAction methods in Apex must be static and […]
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.5K views
- Date format and DateTime format - 203.9K 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.3K 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.