Contents
How do I view communities in Salesforce?
To enable community in Salesforce go to setup -> Build -> Customize -> Communities and click on settings. and check enable communities check box and enter your domain name and save it.
What is Apex controller class?
A custom controller is an Apex class that implements all of the logic for a page without leveraging a standard controller. Use custom controllers when you want your Visualforce page to run entirely in system mode, which does not enforce the permissions and field-level security of the current user.
How do I make my own controller?
Create a Custom Controller Apex Class Open the Developer Console and click File | New | Apex Class to create a new Apex class. Enter ContactsListWithController for the class name. In the editor, replace any code with the following. As with Visualforce pages, you need to save your changes to Apex when you change it.
Why does Apex code run in system mode?
In system mode, Apex code has access to all objects and fields permissions, field-level security, sharing rules aren’t applied for the current user. This is to ensure that code won’t fail to run because of hidden fields or objects for a user.
How to use apex helper class in Visualforce?
D. Use schema.picklistentry returned by opportunity.stagename.getdescribe ().getpicklistvalue () Just want to confirm if this is correct. So for picklist and record types you query through: object.sobjecttype.getdescribe ().get… Q3. A developer created a visualforce page using a custom controller that calls an apex helper class.
How to get picklist and record types in apex?
C. Use schema.recordtypeinfo returned by opportunity.sobjecttype.getdescribe ().getrecordtypeinfos () D. Use schema.picklistentry returned by opportunity.stagename.getdescribe ().getpicklistvalue () Just want to confirm if this is correct. So for picklist and record types you query through: object.sobjecttype.getdescribe ().get… Q3.
What is the rating of an account in apex?
Q5. The account object has a custom percent field, rating, defined with a length of 2 with 0 decimal places. An account record has the value of 50% in its rating field and is processed in the apex code below after being retrieved from the database with SOQL