Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Appian ACD201 Exam - Topic 2 Question 16 Discussion

You're designing a custom component rule!pagingComponent() to page through a list of items. The component must display the current page numbers being shown, as well as the total number of items. Users should be able to click arrows to increase or decrease the pagination.Review the following:Which two patterns should be used when calling the component in this scenario? (Choose two.)
A) Passing into the rule input totalCount of rule!pagingComponent() the value: local!query.totalCount where local!query is returning a dataSubset and returnTotalCount = 'True'. and B) A rule input ri!pagingInfo on rule!pagingComponent() with a local variable of the same name in the main interface with an initial value. When the arrows are clicked, this updates the value of the local variable in the main interface.
C) A local variable local!totalCount calculated using count(local!query), which is passed into rule!pagingComponent() via a rule input. The data type of local!query is a list of record or Custom Data Type (CDT).
D) A local variable local!pagingInfo inside rule!pagingComponent() with an initial value. When the arrows are clicked, this updates the value of the local variable.

Appian ACD201 Exam - Topic 2 Question 16 Discussion

Actual exam question for Appian's ACD201 exam
Question #: 16
Topic #: 2
[All ACD201 Questions]

You're designing a custom component rule!pagingComponent() to page through a list of items. The component must display the current page numbers being shown, as well as the total number of items. Users should be able to click arrows to increase or decrease the pagination.

Review the following:

Which two patterns should be used when calling the component in this scenario? (Choose two.)

Show Suggested Answer Hide Answer
Suggested Answer: A, B

Passing local!query.totalCount (from a dataSubset with returnTotalCount: true) into a rule input allows rule!pagingComponent() to accurately display total items for pagination.

Managing paging state (such as ri!pagingInfo) as a local variable in the main interface and updating it when arrows are clicked ensures that pagination is controlled centrally, maintaining state across the UI and allowing the component to function as intended.


Contribute your Thoughts:

0/2000 characters
I'm a bit confused about option D. It mentions a local variable inside the component, but I thought we needed to manage state in the main interface. Is that right?
upvoted 0 times
...
Mozell
5 days ago
I think option C could work too, especially since we need to calculate the total count. But I'm not clear on whether local!query should always be a list or if it can be something else.
upvoted 0 times
...
Melodie
10 days ago
I feel like option B is similar to a practice question we did about updating local variables. It seems like a good way to handle the arrows for pagination.
upvoted 0 times
...
Paris
15 days ago
I remember we discussed using local!query.totalCount for pagination, so I think option A makes sense. But I'm not entirely sure about the returnTotalCount part.
upvoted 0 times
...

Save Cancel