How to read a table value with IronPython

Last post Mon, Feb 6 2012 10:57 AM by analaytics. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • Tue, Aug 24 2010 5:51 AM

    • kerkh004
    • Not Ranked
    • Joined on Tue, Aug 24 2010
    • Posts 1

    How to read a table value with IronPython

    Hi,

    I try to read a select value in a table with IronPython does anybody know how to do this??

    My script:

     from Spotfire.Dxp.Data import DataValueCursor
    from Spotfire.Dxp.Data import DataPropertyClass

    table=Document.Data.Tables["name_table"]
    ticket=table.Columns["ticket"]
    ticketval=DataValueCursor.Create[str](ticket)

    for row in table.GetRows(ticketval):
                       if(ticketval.CurrentValue == Here the selected value):
                               Do something

    Best Regards

    Eric

     

  • Mon, Feb 6 2012 10:57 AM In reply to

    Re: How to read a table value with IronPython

    If it is a hardcoded value, it should be in double quotes == " [value] "

Page 1 of 1 (2 items)

Spotfire's interactive information visualization and analytic solutions give users a remarkable experience for quickly and easily querying data and reporting results for superior business intelligence. From portfolio management and customer retention programs to key processes such as CRM, marketing, research, bioinformatics, yield and asset management and design for manufacturing, enterprises around the world rely on Spotfire's business analytics software to improve operational performance.

©Copyright 2000-2011 TIBCO Software Inc | Privacy Policy | Terms of Use I Blog I Contact Us I Content Center