• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 2 pages
Exam (elaborations)

PCF and Dynamic UI (1).

Document preview thumbnail
Preview 1 out of 2 pages

PCF and Dynamic UI (1).

Content preview

PCF and Dynamic UI
What is a PCF? - ANS-A container made up of widgets

What are dynamic widgets? - ANS-Widgets that have properties that change according to what
the user is doing. These can be very expensive on systems. For example, using the multi-step
dot paths. (See slide 6 for more details)

Why not run an array expansion/collections request like first(), firstWhere(), or last()? -
ANS-Because array expansion/collection requests are expensive and get us more information
then we typically need, resulting in an unnecessarily slow method.

What should we do when several widgets on the same page use the same method? - ANS-We
should create a page-level PCF variable and initialize it to call the expensive method. Setting
this variable lets the expensive method be called just once.

Provide 3 examples of expensive expressions. - ANS--Anything that uses dot.pathing
-Array collection methods
-Array expansion methods

What should be done to replace an expensive expression that is called multiple times within the
same PCF? - ANS-Create a local PCF variable and initialize it using the expensive expression.
That allows the expression to be called just once.

What approach should be used to test for visibility or editability of a widget? - ANS-Test an
Applicaiton Permission Key (perm.<entity>) or System Permission Key (perm.System).

What are ListViews? - ANS-These are lists that iterate over a data set, dynamically creating a
new row in the list for each record in the data set.

What are the three different types of list view? - ANS-Array-backed, query-backed, and
view-entity-backed (?).

What are array-backed ListViews best for? - ANS-These are best for short lists because the full
set of data is loaded when the ListView is initially rendered. When you edit/modify data, the
modified data may move to another page, so use only on short lists.

What are Query-backed ListViews best for? - ANS-These are best for long lists because only
the first page of data is fetched and loaded. As we naigate between pages, the query is rerun
and the viewable data is loaded. Only columns that physically exist in the database can be used
for filtering or sorting.

Document information

Uploaded on
July 26, 2024
Number of pages
2
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
CA$12.48

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Ace360PRO
4.7
(108)
Sold
262
Followers
3
Items
10566
Last sold
1 month ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions