Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. How to set node comment from script?

How to set node comment from script?

Scheduled Pinned Locked Moved Support
6 Posts 2 Posters 28.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    D
    ditonet
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • A
      A
      Alex Kirhenshtein
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • D
        D
        ditonet
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • A
          A
          Alex Kirhenshtein
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • D
            D
            ditonet
            wrote on last edited by
            #5

            Done.

            Regards, Grzegorz.

            1 Reply Last reply
            0
            • D
              D
              ditonet
              wrote on last edited by
              #6

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

              Best regards, Grzegorz.

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              Powered by NodeBB Contributors
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups