NetXMS Support Forum

English Support => General Support => Topic started by: ditonet on January 24, 2019, 01:21:50 AM

Title: How to set node comment from script?
Post by: ditonet on January 24, 2019, 01:21:50 AM
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.
Title: Re: How to set node comment from script?
Post by: Alex Kirhenshtein on January 24, 2019, 06:02:40 PM
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.
Title: Re: How to set node comment from script?
Post by: ditonet on January 24, 2019, 07:30:20 PM
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.
Title: Re: How to set node comment from script?
Post by: Alex Kirhenshtein on January 28, 2019, 01:03:15 PM
Create feature request in the issue tracker and we'll add it
Title: Re: How to set node comment from script?
Post by: ditonet on January 31, 2019, 01:28:54 AM
Done.

Regards, Grzegorz.
Title: Re: How to set node comment from script?
Post by: ditonet on March 13, 2019, 12:55:49 AM
Thanks a lot for adding this feature:
NX-1558 (Add ability to change node's comment from script)

Best regards, Grzegorz.