User Interface Flashcards
What elements are required to use Remote Objects?
apex:RemoteObjects and SObjectModel
How to pass errors from Apex to Aura/LWC?
- Try/catch
- AuraHandledException
- Checking response state in JS
When Remote Objects can be utilized?
You want to create, edit objects without using Apex Code.
When Remoting can be utilized?
- Execute complex server-size logic.
2. High-load traffic.
Which Visualforce component can be used to show the status of asynch request?
apex:actionStatus
startText
stopText
id=
Which of the following tags is used on a Visualforce page in order to display messages generated for all components on the page?
apex:pageMessages
What tag is used to display a message for a single referenced component?
apex:pageMessage
What is correct syntax to specify the message as en error in Visualforce?
ApexPages.Severity.ERROR
Advantages of Javascript Remoting
- Stateless.
2. Asynchronous
What tags are supports action attribute?
commandButton commandLink actionPoller actionSupport actionFunction apex:page
How to catch and display errors in Visualforce?
- Try / catch
- ApexPages.addMessage
- apex:pageMessages
Where reRender attribute can’t be utilized?
In cases, where there is a need to update table
How to show Lightning Experience’s toast errors in Visualforce env?
sforce.one.showToas({toastParams})
How to make continuation work in Aura/ LWC?
- Add the continuation=true annotation to the action method that returns the continuation instance.
- (Optionally, but recommended) Add the cacheable true annotation to the method that returns the continuation instance
What can be used to display error messages to users in the Salesforce user interface?
- lightning-platform-show-toast-event (lwc)
- apex:pageMessages (visualforce)
- lightning:notificationsLibrary (aura)