5. Intro to Application Building in Workshop8. Setting Your Tables Output Variables
Feedback

8 - Setting your table’s output variables

This content is also available at learn.palantir.com ↗ and is presented here for accessibility purposes.

📖 Task Introduction

As described in the Workshop product documentation, widgets use data passed into them via input variables, but many also produce an output variable that represents a refined object set or other value passed out of the widget for downstream consumption.

In this task, we will begin exploring this foundational aspect of the Workshop building process.

🔨 Task Instructions

  1. In the Selection section of the widget configuration panel, click on the default Active Object variable name (i.e., Object table 1 Active object).

    • When you click a row in your object table, this variable represents the highlighted object (e.g., a particular flight alert). The active object variable will always select a single object.
  2. In the fly-out window, rename the variable to [o][1] Active Flight Alert and hit the enter key on your keyboard.

    • Recall the naming convention used in this tutorial places an [o] prefix to distinguish the variable as an object set followed by a 1, indicating it is an object set of 1.
    • The Current value in the variable window shows the currently highlighted row in the table. If you lose the variable window, simply click into the variable name in the widget configuration panel.
  3. You can also set a variable to store multiple selected rows (objects). For example, you might want to pass a set of objects from your table into a visualization widget. Start by moving the Enable Multi-Select toggle to the “on” position. The toggle is located below the ➕ Add event button. A Selected Objects field will show up and you need to select [o][1] Active Flight Alert.

    • Each table row now has a checkbox. Click a few to get a feel for the selection pattern.