User Interface (25%) Flashcards

1
Q

What iteration components can be used to display a table of data in a Visualforce page?

A
  • pageBlockTable

- dataTable

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

Can you override buttons on detail or edit pages?

What buttons can you override?

A
  • Detail page, not edit page!
  • You can only override these standard buttons: New, View, Edit, and Delete
  • Overriding buttons reroutes the links for that button everywhere
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

SVG

A
  • Scalabe Vector Graphics

- File in a Lightning component bundle that contains custom icon resources

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

How can you override standard buttons in Salesforce Classic vs Lightning Experience & Mobile?

A
  • Classic requires a new Visualforce page

- Lightning components can be used for Lightning Experience & Mobile

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

Key factors of Eintsein Next Best Action

A
  • Recommendations (standard Salesforce records that are processed by strategies and associated with flows.
  • Flows (choose to launch a flow only when a recommendation is accepted, or when it is accepted or rejected)
  • Strategies (use Strategy builder to determine which recommendation records are surfaced using business rules, predictive models, and other data sources)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Einstein Next Best Action Strategy Elements

A
  • Enhance
  • Generate
  • Load
  • Filter
  • Limit Reoffers
  • Map
  • Sort
  • Branch Merge
  • First Non-Empty Branch
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Methods of preventing against SOQL injection attacks

A
  • Static queries with bind variables
  • String.escapeSingleQuotes()
  • Typecasting
  • Replacing characters
  • Allowlisting
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Resources in a component bundle

A
  • Component or Application
  • CSS Styles
  • Controller
  • Design
  • Documentation
  • Renderer
  • Helper
  • SVG File
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What keyword should be used in the controller to enforce security sharing permissions for users viewing a Visualforce page?

A

“with sharing”

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

Advantages of LWC framework

A
  • Out-of-the-box component set
  • Performance
  • Event-driven architecture
  • Rapid development
  • Device-aware and cross-browser compatibility
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What Visualforce attribute can be used to render a Visualforce page as a PDF?

A

“renderAs”

EX: renderAs=”pdf”

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

Application Event vs Component Event

A
  • Component events are fired from an instance of a component, hierarchy
  • Application events are non-hierarchical (no parent-child relationships), they broadcast events to all components which can adversely affect performance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Considerations for using external JavaScript libraries

A
  • The library must be uploaded to Salesforce as a static resource
  • Use the tag in .cmp or .app markup
  • $Resource is used to include the name of the JavaScript static resource
  • A set of resources can be loaded using the ‘scripts’ attribute
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What component creates an inline frame within a Visualforce page?

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

What can be uploaded as a static resource and referenced in a Visualforce page using the $Resource global variable?

A
  • Archive
  • JavaScript file
  • Style Sheet
  • Image
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What can be used to allow Visualforce pages, Aura components, and Lightning web components to communicate with one another via a dedicated Lightning message channel?

A
  • Lightning message service
17
Q

What button overrides are supported in Lightning console apps?

A
  • New
  • Edit
  • View
  • Tab
  • List
  • Clone

**Delete and custom actions not supported

18
Q

How can you include JavaScript in a Visualforce page?

A
  • includeJavascript

- script

19
Q

What does this attribute do?

lightningStylesheets=”true”

A

Ensures that the page uses Lightning Experience styling when it is viewed in Lightning Experience or the Salesforce app

20
Q

Can Lightning web components contain Aura components and vice versa?

A

Aura components can contain Lightning Web Components, but not the other way around.

21
Q

What resources does the global variable $ContentAsset provide access to?

A
  • images
  • CSS files
  • javascript files
  • stylesheets