NetXMS Support Forum

Please login or register.

Login with username, password and session length

Author Topic: How to set node comment from script?  (Read 467 times)

ditonet

  • Newbie
  • *
  • Posts: 39
    • View Profile
How to set node comment from script?
« 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.
Logged

Alex Kirhenshtein

  • Team Member
  • Administrator
  • Hero Member
  • *****
  • Posts: 914
    • View Profile
Re: How to set node comment from script?
« Reply #1 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.
Logged

ditonet

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: How to set node comment from script?
« Reply #2 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.
« Last Edit: January 24, 2019, 08:02:25 pm by ditonet »
Logged

Alex Kirhenshtein

  • Team Member
  • Administrator
  • Hero Member
  • *****
  • Posts: 914
    • View Profile
Re: How to set node comment from script?
« Reply #3 on: January 28, 2019, 01:03:15 pm »

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

ditonet

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: How to set node comment from script?
« Reply #4 on: January 31, 2019, 01:28:54 am »

Done.

Regards, Grzegorz.
Logged

ditonet

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: How to set node comment from script?
« Reply #5 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.
Logged