Saumya Pandey
Saumya Pandey

Reputation: 317

Spotfire Limit Visualization using Iron Python Scripting

I have a data table which has a column ID mapped with another column PID. I have another datatable which contains detail data for respective ID's.I want to add a column PID to my second table according to its respective ID's using the first table. My main purpose is to implement a dropdown using the PID column and limit the data in the datatable visualization of the second table.

Upvotes: 1

Views: 736

Answers (1)

ksp585
ksp585

Reputation: 1770

@Saumya- This can be implemented without using iron python script.

  • Assuming you have added PID column to your second table. This can be done by matching the ID columns from both the tables. Refer to this SO post for adding columns from another table. A part of the answer talks about this.

Spotfire lookup a value from a calculated column

  • Now, create a drop down property control which is linked to your PID column so that it has unique values from that column.

  • After you have created this drop down in text area, go to data table properties. In Data > Limit data using expression section add the below expression.

"${propertyname}"=[PID]

Based on the drop-down selection, your table gets filtered.

Hope this helps!

Upvotes: 2

Related Questions