How to set node comment from script?

Started by ditonet, January 24, 2019, 01:21:50 AM

Previous topic - Next topic

ditonet

Hello,

As title says:
How to set node comment from script?
I want to change it based on some conditition, but can't find any info in documentation.
Thanks in advance.

Regards, Grzegorz.

Alex Kirhenshtein

It's not possible to change comment from nxsl script.
As a workaround (depends on what you are trying to achieve) - you can modify custom attribute from script, then create scripted DCI (with retention time="do not save to DB") which will get value of the custom attribute - and select option to show this DCI on the overview page.

ditonet

#2
Hello Alex,

Thanks for your answer.
I want to create comment from few concatented custom attributes.
I'm trying to modify comments, because they are displayed as node tooltips on maps.
I know there is option to display DCI's last value as tooltip, but in this case DCI name is also displayed, not only last value and this is unwanted for me.
I can live with this, but tried to find better solution  :).

Regards, Grzegorz.

Alex Kirhenshtein

Create feature request in the issue tracker and we'll add it

ditonet


ditonet

Thanks a lot for adding this feature:
NX-1558 (Add ability to change node's comment from script)

Best regards, Grzegorz.