setDocumentProperty not working when trying to set document property in Spotfire using JSAPI

Hi everyone,

I'm trying to set document property in spotfire using spotfire JSAPI.

I've established spotfire connectivity using app = new spotfire.webPlayer.Application(c_serverUrl, customization, c_analysisPath, parameters, true);

and then I'm trying to set doc property using app.analysisDocument.setDocumentProperty("propertyName","value"), propertyName already exist in spotfire whose value should get replaced with new value.
Can someone help me in understanding why this is not working or why doc property is not getting reflected in spotfire?


Hi Khushboo,
Thanks for replying..
But when I'm trying to use setDocumentProperty from webplayer it is throwing an error that Cannot read property 'setDocumentProperty' of null.

uttarakulkarni709 - Aug 30, 2018 - 6:42am ::

value is of system.object type.

can you try this: var test=10; and then pass test in setDocumentProperty("propertyName",test), assuming your property is of integer type

Khushboo R - Aug 29, 2018 - 8:33am ::
+ Add a Comment