Skip to Main Content
Spotfire Ideas Portal
Status Future Consideration
Product Spotfire
Categories API
Created by Guest
Created on Jun 11, 2021

add API to get rows from data table with sort order on specific column

Please add API to get rows from data table with sort order on specific column.


Thanks.


  • Attach files
  • Admin
    Magnus Rylander
    Reply
    |
    Jul 1, 2021

    A PersistentDataView instance needs to be attached to the document (since it's a DocumentNode). I don't know if there is a way to do that in an IronPython script. It probably only works from a C# extension.

  • Guest
    Reply
    |
    Jun 29, 2021

    Thank you Magnus, I noticed SortBy properties of PersistentDataView class too, however I can not figure out how to utilize this class from IronPython script, could you please help with an example? Thanks.

  • Admin
    Magnus Rylander
    Reply
    |
    Jun 29, 2021

    Please have a look at PersistentDataView, which allows you to specify one or more columns to sort by:
    https://docs.tibco.com/pub/doc_remote/sfire_dev/area/doc/api/TIB_sfire-analyst_api/?topic=html/T_Spotfire_Dxp_Data_PersistentDataView.htm