Spotfire IronPython script: Delete a data-table

不问归期 提交于 2019-12-13 16:54:48

问题


I am new to iron-python. I would be obliged if anyone can tell me how to completely delete a data-table using iron-python?


回答1:


you can do this pretty easily with:

dt_name = "Data Table" # name of the data table

dt = Document.Data.Tables[dt_name]

Document.Data.Tables.Remove(dt)

of course you can compress this all to:

Document.Data.Tables.Remove(Document.Data.Tables["Data Table"])


来源:https://stackoverflow.com/questions/29891173/spotfire-ironpython-script-delete-a-data-table

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!