100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
PCF and Dynamic UI (1). $7.99   Add to cart

Exam (elaborations)

PCF and Dynamic UI (1).

 5 views  0 purchase
  • Course
  • Institution

PCF and Dynamic UI (1).

Preview 1 out of 2  pages

  • July 26, 2024
  • 2
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
avatar-seller
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.

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller modockochieng06. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $7.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

77973 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$7.99
  • (0)
  Add to cart