You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Data in ADP different from what's being shown in list view?

edited Sep 18, 2019 10:43AM in Visual Builder 6 comments

Summary

Unexpected behavior when resetting/refilling ADP's used for list views.

Content

Hello Community,

Goal

On page A, we want the user to be able to select items from one list and move them to another, so we both know what's selected and what's still available. Both the selected and available items should then be shown on page B.

Approach

We use two ADPs, one with available items and one with selected items. We fill the lis views with available items from a REST endpoint call. When a user selects an available item, we add the item to the selectedItemsADP and remove it from the availableItemsADP using two 'fire data provider events' in a single action chain. So far, so good. We got this working after learning about the proper use of the ADP's id attribute in this thread:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!