Skip to Main Content
Spotfire Ideas Portal
Status Future Consideration
Product Spotfire
Categories Text Area
Created by Guest
Created on Sep 26, 2017

Support "Name Field" to "ID Field" mapping in Property Controls when using "Unique Values in Column"

It is quite common to have to display a dropdown or multi-select listbox containing a choice of items by name, but when a user makes a selection, pass the actual IDs of the items for downstream processing, not their names.

Item Name      Item ID
Boiler         192785e5-6aeb-11e6-8141-0259cee0cdf1
Cooling Fan    19278536-6aeb-11e6-8141-0259cee0cdf1
Pump           1927850f-6aeb-11e6-8141-0259cee0cdf1

 

This can be achieved using IronPython scripting, but it would be much easier to author and also to maintain if the "unique values in column" functionality allowed the selection of a second column as the ID field.  Then whenever the selection changed, both the name and ID Document Properties are updated together.

  • Attach files
  • Guest
    Reply
    |
    Sep 26, 2017

    I looked into creating a Custom Function to do this, but there is no option in the Spotfire SDK to create a custom pre-processor function similar to $map, $esc etc.