21 - Implementing Your Voucher Action in Workshop, part 1
This content is also available at learn.palantir.com ↗ and is presented here for accessibility purposes.
📖 Task Introduction
Let's create a drawer that lists all passengers associated with the highlighted (i.e., active) flight alert. From this drawer, our analyst can surface passenger metrics and take actions.
🔨 Task Instructions
Open your Workshop module in Edit mode.
Create a new object set definition variable called [o] Linked Passengers that uses [o][1] Active Flight Alert as the starting object set and searches around to linked passengers.
Add a new drawer layer, and in its metadata tab rename it to Drawer: Linked Passengers.
In the top section, add a Button group widget with the configuration below. You'll use this in a future task to enable the assignment of travel vouchers based on passenger status.
In the widget's metadata tab, rename it to Button group: Actions.
In the bottom section of your passenger drawer, add an Object list widget.
Rename your new widget to Object list: Passengers.
In the Input Data section, set [o] Linked Passengers as the object set.
Consider adding some properties in the Properties Configuration section of the editor, including Flyer Status and Number of Flights.
Return to the main page of your Workshop module and add a button just above your flight alert table that causes your new drawer to open when clicked. Be sure to label your button with something representative, like Passenger Details.