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

  1. Open your Workshop module in Edit mode.
  2. 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.
  3. Add a new drawer layer, and in its metadata tab rename it to Drawer: Linked Passengers.
  4. 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.
  5. In the widget's metadata tab, rename it to Button group: Actions.
  6. In the bottom section of your passenger drawer, add an Object list widget.
  7. Rename your new widget to Object list: Passengers.
  8. In the Input Data section, set [o] Linked Passengers as the object set.
  9. Consider adding some properties in the Properties Configuration section of the editor, including Flyer Status and Number of Flights.
  10. 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.