Jump to content

Iron Python script for cross Table taggle Rows Grand Total


Naveen Tibco

Recommended Posts

You can use below script to show/hide Grand Total for rows:

from Spotfire.Dxp.Application.Visuals import *

 

#add a script parameter vis referring to the cross table visualization

 

crossTable=vis.As[CrossTablePlot]()

result= crossTable.ShowRowGrandTotal

if result== True:

crossTable.ShowRowGrandTotal=False

else:

crossTable.ShowRowGrandTotal=TrueReference:

https://docs.tibco.com/pub/doc_remote/sfire_dev/area/doc/api/TIB_sfire-a...

Link to comment
Share on other sites

Thanks for your inputs.....i tried with your code but i am getting below error 

 

 

 

[[{"fid":"165356","view_mode":"default","fields":{"format":"default","field_file_image_alt_text[und][0][value]":false,"field_file_image_title_text[und][0][value]":false,"height":"","width":""},"type":"media","field_deltas":{"1":{"format":"default","field_file_image_alt_text[und][0][value]":false,"field_file_image_title_text[und][0][value]":false,"height":"","width":""}},"attributes":{"class":"media-element file-default","data-delta":"1"}}]]

 

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...