David Katz Posted October 17, 2022 Share Posted October 17, 2022 In a table view, there's the option "Replace Value" in the right-click pop-up menu.Can this be done from an IronPython Script? I want to change the value in a set of marked rows.Thanks. Link to comment Share on other sites More sharing options...
Fredrik Rosell Posted October 18, 2022 Share Posted October 18, 2022 Hello,Yes, it's simply a transformation. You can read more about the Replace* Transformations here: ReplaceSpecificValueTransformation ClassRepresents a DataTransformation that replaces values on specific rows, or on a single specific row.https://docs.tibco.com/pub/doc_remote/sfire_dev/area/doc/api/TIB_sfire-analyst_api/?topic=html/T_Spotfire_Dxp_Data_Transformations_ReplaceSpecificValueTransformation.htm&_ga=2.83343446.157951067.1665987582-776196050.1636355826ReplaceValuesTransformation ClassRepresents a DataTransformation that replaces all values in a column that match a given value.https://docs.tibco.com/pub/doc_remote/sfire_dev/area/doc/api/TIB_sfire-analyst_api/html/T_Spotfire_Dxp_Data_Transformations_ReplaceValuesTransformation.htmIf you take a look in the script example below, you can find an example of ReplaceValuesTransformation being used.https://community.spotfire.com/s/article/How-to-Replace-a-Transformation-in-a-DataTable-in-TIBCO-Spotfire-Using-IronPython-Scripting Link to comment Share on other sites More sharing options...
David Katz Posted October 18, 2022 Author Share Posted October 18, 2022 Fredrick, Thanks very much for this material. Regards, *David Katz*, TIBCO Data Science 1.541.324.7417 Link to comment Share on other sites More sharing options...
David Katz Posted October 19, 2022 Author Share Posted October 19, 2022 Still needing help:1) ReplaceSpecificValueTransformationClass seems to require the old value in the cell, even though we have already specified the row(s) and columns. Is that right? What I want is to mark the rows and then poke the new values in regardless of the old. How best to do that?2) after I create the new transformation, is there an additional step to apply that transformation to the existing table?Thanks much! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now