You need to sign in to do that
Don't have an account?
sfdck
Confusion with ApexPages
Hi,
I have a confusion in these lines about the ApexPages
ApexPages.currentPage().getParameters().get('id') ---> wt is ApexPages in this line ?
Apexpages.standardcontroller ---> wt is Apexpages here ?
Help is greatly Appreciated.
ApexPages is a static reference to the ApexPages class. See documentation on the ApexPages class at http://www.salesforce.com/us/developer/docs/pages/Content/apex_methods_system_apexpages.htm
Interestingly, the currentPage() method is not listed here.
ApexPages.StandardController is a static reference to the StandardController class that is an inner class in the ApexPages class. Documentation for it is at http://www.salesforce.com/us/developer/docs/pages/Content/apex_pages_standardcontroller.htm
Regards,
Kresimir
Apex Editor LS - free alternative to Force.com apex editor.
All Answers
Hi,
ApexPages.currentPage().getParameters().get('id')
The getAccount method uses an embedded SOQL query to return the account specified by the id parameter in the URL of the page. To access id, the getAccount method uses the ApexPages namespace:
ApexPages here means it refers for the current page with the currentPage ApexPages method.
Apexpages.standardcontroller:
If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.
Thanks
ApexPages is a static reference to the ApexPages class. See documentation on the ApexPages class at http://www.salesforce.com/us/developer/docs/pages/Content/apex_methods_system_apexpages.htm
Interestingly, the currentPage() method is not listed here.
ApexPages.StandardController is a static reference to the StandardController class that is an inner class in the ApexPages class. Documentation for it is at http://www.salesforce.com/us/developer/docs/pages/Content/apex_pages_standardcontroller.htm
Regards,
Kresimir
Apex Editor LS - free alternative to Force.com apex editor.