Refresh standard detail page from visualforce page in iframe

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 more

Group by multiple fields in SOQL

In this post I’ll show you the useage of Group By in SOQL. *Amazingly,SOQL supports groupping with multiple fields. The data I have prepared the data by Saels__c sObject, whose Account__c field is reference to Account,User__c field is reference to User, and Amount__c field is a Currency field. Group By 1.Simple Group BY 1.Group by […]

read more

Order of execution in Visualforce Page

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 more