User Interface (25%) Flashcards
What iteration components can be used to display a table of data in a Visualforce page?
- pageBlockTable
- dataTable
Can you override buttons on detail or edit pages?
What buttons can you override?
- 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
SVG
- Scalabe Vector Graphics
- File in a Lightning component bundle that contains custom icon resources
How can you override standard buttons in Salesforce Classic vs Lightning Experience & Mobile?
- Classic requires a new Visualforce page
- Lightning components can be used for Lightning Experience & Mobile
Key factors of Eintsein Next Best Action
- 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)
Einstein Next Best Action Strategy Elements
- Enhance
- Generate
- Load
- Filter
- Limit Reoffers
- Map
- Sort
- Branch Merge
- First Non-Empty Branch
Methods of preventing against SOQL injection attacks
- Static queries with bind variables
- String.escapeSingleQuotes()
- Typecasting
- Replacing characters
- Allowlisting
Resources in a component bundle
- Component or Application
- CSS Styles
- Controller
- Design
- Documentation
- Renderer
- Helper
- SVG File
What keyword should be used in the controller to enforce security sharing permissions for users viewing a Visualforce page?
“with sharing”
Advantages of LWC framework
- Out-of-the-box component set
- Performance
- Event-driven architecture
- Rapid development
- Device-aware and cross-browser compatibility
What Visualforce attribute can be used to render a Visualforce page as a PDF?
“renderAs”
EX: renderAs=”pdf”
Application Event vs Component Event
- 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
Considerations for using external JavaScript libraries
- 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
What component creates an inline frame within a Visualforce page?
- iframe
What can be uploaded as a static resource and referenced in a Visualforce page using the $Resource global variable?
- Archive
- JavaScript file
- Style Sheet
- Image