User Interface Flashcards

1
Q

What elements are required to use Remote Objects?

A

apex:RemoteObjects and SObjectModel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to pass errors from Apex to Aura/LWC?

A
  1. Try/catch
  2. AuraHandledException
  3. Checking response state in JS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When Remote Objects can be utilized?

A

You want to create, edit objects without using Apex Code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

When Remoting can be utilized?

A
  1. Execute complex server-size logic.

2. High-load traffic.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which Visualforce component can be used to show the status of asynch request?

A

apex:actionStatus
startText
stopText
id=

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which of the following tags is used on a Visualforce page in order to display messages generated for all components on the page?

A

apex:pageMessages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What tag is used to display a message for a single referenced component?

A

apex:pageMessage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is correct syntax to specify the message as en error in Visualforce?

A

ApexPages.Severity.ERROR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Advantages of Javascript Remoting

A
  1. Stateless.

2. Asynchronous

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What tags are supports action attribute?

A
commandButton
commandLink
actionPoller
actionSupport
actionFunction
apex:page
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How to catch and display errors in Visualforce?

A
  1. Try / catch
  2. ApexPages.addMessage
  3. apex:pageMessages
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Where reRender attribute can’t be utilized?

A

In cases, where there is a need to update table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How to show Lightning Experience’s toast errors in Visualforce env?

A

sforce.one.showToas({toastParams})

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How to make continuation work in Aura/ LWC?

A
  1. Add the continuation=true annotation to the action method that returns the continuation instance.
  2. (Optionally, but recommended) Add the cacheable true annotation to the method that returns the continuation instance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What can be used to display error messages to users in the Salesforce user interface?

A
  1. lightning-platform-show-toast-event (lwc)
  2. apex:pageMessages (visualforce)
  3. lightning:notificationsLibrary (aura)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How to import static resources in Aura?

A
  1. ltng:require + scripts styles attributes and $Resource global variable.
17
Q

How to import static resource in LWC?

A
  1. Import loader from platformResourceLoader
  2. Import static resources from @salesforce/resourceUrl
  3. Use loadScript, loadStyle
18
Q

How to override standard action with Aura component?

A

Create a component that implements lightning:actionOverride

19
Q

Which annotation allows Aura component to be used as a quick action?

A

force:lightningQuickAction

20
Q

How to check user permission in LWC?

A

import @salesforce/customPermission or @salesforce/userPermission to check for assignment of the current user

21
Q

How to allow to communicate the Visualforce / Aura / LWC to communicate to each other on the same page?

A

Lightning message service

22
Q

How to make a LWC as a object specific action?

A

ScreenAction

lightning_RecordAction

23
Q

Can LWC call global actions?

A

No. In this case lwc included in Aura

24
Q

How to get form-factor and determine if current device Phone or Table?

A

Use $Browser global variable

25
Q

Pros of static resources:

A
  1. Load third-party library and reuse in Aura/LWC/Visualforce
  2. Maintain consistent look across components.
26
Q

What are values are supported by targetConfigs[i].supportedFormFactors[i] attribute?

A

Small, Large

27
Q

How to close modal in lwc using JS?

A

Dispatch CloseActionScreenEvent

28
Q

What suffix has messageChannel in LWC?

A

__c