Jump to content

NoneType' object has no attribute 'replace'


Shivaganga B

Recommended Posts

This code is causing 'NoneType' object has no attribute 'replace'. Please help me debug.

from Spotfire.Dxp.Data.Collections import *

from string import *

DocProp=Document.Properties['MyProperty']

xyz=DocProp.replace(", ",",")

xyz=xyz+",a,b,c"

li = list(xyz.split(","))

Document.Data.Tables['Data_table'].Columns['Column_Name'].Properties.SetCustomSortOrder(li)

Link to comment
Share on other sites

  • 2 weeks later...

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...