<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Request user input from nxsl]]></title><description><![CDATA[<p dir="auto">Hello together,</p>
<p dir="auto">is there a possibility to request some userinput from a script? This input from a mask the user can fill within the GUI should be attached for example to the current node or container as CustomAttributes.</p>
<p dir="auto">Best regards</p>
<p dir="auto">Georg</p>
]]></description><link>https://forum.netxms.org/topic/3955/request-user-input-from-nxsl</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 12:14:46 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3955.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 29 Aug 2015 12:30:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Request user input from nxsl on Tue, 01 Sep 2015 15:25:15 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Your advise in mind how to call the nxsl-Script everything worked fine for Nodes!<br />
Trying to execute the same script for a Container within the gui does not work at all.<br />
I inserted a println-statement to the script to see the object-Id that is called, but I don't get any Output for a containerobject.<br />
Executing the script directly from commandline on Linux with an id identifying a Container I will get the expected result for that container.</p>
<p dir="auto">Best regards</p>
<p dir="auto">Georg</p>
]]></description><link>https://forum.netxms.org/post/17696</link><guid isPermaLink="true">https://forum.netxms.org/post/17696</guid><dc:creator><![CDATA[gkaudewitz]]></dc:creator><pubDate>Tue, 01 Sep 2015 15:25:15 GMT</pubDate></item><item><title><![CDATA[Reply to Request user input from nxsl on Tue, 01 Sep 2015 08:30:02 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">nxscript provides only generic functions, as it is completely independent from server process. You have to run your script within netxmsd, for example using nxadm:</p>
<pre><code>/data/netxms/bin/nxadm -c 'exec /data/scripts/first.nxsl 124 ddd dddd'
</code></pre>
<p dir="auto">and if you need to execute NXSL script as reaction to event, you can simply create your script in script library and use "execute script" action.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/17689</link><guid isPermaLink="true">https://forum.netxms.org/post/17689</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 01 Sep 2015 08:30:02 GMT</pubDate></item><item><title><![CDATA[Reply to Request user input from nxsl on Tue, 01 Sep 2015 05:56:04 GMT]]></title><description><![CDATA[<p dir="auto">Thank's for the correction concerning the function FindObject. I tried the function FindNodeObject too several times.<br />
But the problem persists.</p>
<pre><code>NetXMS Scripting Host  Version 2.0-RC1
Copyright (c) 2005-2015 Victor Kirhenshtein

Error 11 in line 4: Function not found

</code></pre>
<p dir="auto">Best regards</p>
<p dir="auto">Georg</p>
]]></description><link>https://forum.netxms.org/post/17687</link><guid isPermaLink="true">https://forum.netxms.org/post/17687</guid><dc:creator><![CDATA[gkaudewitz]]></dc:creator><pubDate>Tue, 01 Sep 2015 05:56:04 GMT</pubDate></item><item><title><![CDATA[Reply to Request user input from nxsl on Mon, 31 Aug 2015 21:32:18 GMT]]></title><description><![CDATA[<pre><code>sub main()
{
  obj = FindObject($1);
  if (obj == null)
  {
    println "Object not found Id:" . $1;
    return;
  }

  SetCustomAttribute(obj,"Bau",$2);
  SetCustomAttribute(obj,"Etage",$3);
  SetCustomAttribute(obj,"Raum",$4);

  //println "Hello World " . $1 . " " . $2 . " " . $3 . " " . $4 . " " . $5;
}
</code></pre>
]]></description><link>https://forum.netxms.org/post/17683</link><guid isPermaLink="true">https://forum.netxms.org/post/17683</guid><dc:creator><![CDATA[tomaskir]]></dc:creator><pubDate>Mon, 31 Aug 2015 21:32:18 GMT</pubDate></item><item><title><![CDATA[Reply to Request user input from nxsl on Mon, 31 Aug 2015 20:40:58 GMT]]></title><description><![CDATA[<p dir="auto">It's confusing....</p>
<p dir="auto">runnig the following script with <code>/data/netxms/bin/nxscript /data/scripts/first.nxsl 124 ddd dddd </code>I always get the same error:</p>
<pre><code>NetXMS Scripting Host  Version 2.0-RC1
Copyright (c) 2005-2015 Victor Kirhenshtein

Error 11 in line 4: Function not found


</code></pre>
<p dir="auto">An object with ID 124 exists in my testdatabase. There is no differencs wether I run the script from objecttools or from Linux commandline.</p>
<pre><code>sub main()
{

 obj = FindObject(null,$1);
 if (obj == null)
   { println "Object not found Id:" . $1;
     return;
   };
 SetCustomAttribute(obj,"Bau",$2);
 SetCustomAttribute(obj,"Etage",$3);
 SetCustomAttribute(obj,"Raum",$4);

 //println "Hello World " . $1 . " " . $2 . " " . $3 . " " . $4 . " " . $5;
}
</code></pre>
<p dir="auto">Is it necessary to set some path or lib-variables?</p>
<p dir="auto">I'm using version 2.0-RC1(8035)</p>
]]></description><link>https://forum.netxms.org/post/17682</link><guid isPermaLink="true">https://forum.netxms.org/post/17682</guid><dc:creator><![CDATA[gkaudewitz]]></dc:creator><pubDate>Mon, 31 Aug 2015 20:40:58 GMT</pubDate></item><item><title><![CDATA[Reply to Request user input from nxsl on Mon, 31 Aug 2015 07:50:22 GMT]]></title><description><![CDATA[<p dir="auto">Sorry I just read that inputfields for object Tools have been implemented with 2.0-RC1....</p>
]]></description><link>https://forum.netxms.org/post/17672</link><guid isPermaLink="true">https://forum.netxms.org/post/17672</guid><dc:creator><![CDATA[gkaudewitz]]></dc:creator><pubDate>Mon, 31 Aug 2015 07:50:22 GMT</pubDate></item><item><title><![CDATA[Reply to Request user input from nxsl on Mon, 31 Aug 2015 07:41:08 GMT]]></title><description><![CDATA[<p dir="auto">Thaks for fast answering my questions to all of you.</p>
<p dir="auto">I tried all other combinations of brackets and % but not this one...</p>
<p dir="auto">One more question now: I've tested a script on an other system running on 2.0-RC1 and got a window requesting values for the parmeters. My production system still is running on 1.1.17 there I get no window requesting the values. Is there a difference between 2.0 and 1.1.17 or is there a Problem with my production Environment (Java on the Client or something else..)</p>
]]></description><link>https://forum.netxms.org/post/17671</link><guid isPermaLink="true">https://forum.netxms.org/post/17671</guid><dc:creator><![CDATA[gkaudewitz]]></dc:creator><pubDate>Mon, 31 Aug 2015 07:41:08 GMT</pubDate></item><item><title><![CDATA[Reply to Request user input from nxsl on Sun, 30 Aug 2015 20:32:10 GMT]]></title><description><![CDATA[<p dir="auto">Create a normal server command Object Tools, and as command, use this:<br />
/root/some/script.sh %a %U %(foo) %(bar)</p>
<p dir="auto">Where foo and bar are from your input fields.<br />
(you still need to configure the input fields in their configuration)</p>
]]></description><link>https://forum.netxms.org/post/17669</link><guid isPermaLink="true">https://forum.netxms.org/post/17669</guid><dc:creator><![CDATA[tomaskir]]></dc:creator><pubDate>Sun, 30 Aug 2015 20:32:10 GMT</pubDate></item><item><title><![CDATA[Reply to Request user input from nxsl on Sun, 30 Aug 2015 20:08:35 GMT]]></title><description><![CDATA[<p dir="auto">Hello Victor,</p>
<p dir="auto">thank's for the tip! But how can I pass the values of the Input Fields to a servercommand that will call nxscript for inserting the values of the Input Fields as Custom Attributes?<br />
The node  identified by %n can be passed in the commandline  in Object Tools.<br />
Best regards<br />
Georg</p>
]]></description><link>https://forum.netxms.org/post/17668</link><guid isPermaLink="true">https://forum.netxms.org/post/17668</guid><dc:creator><![CDATA[gkaudewitz]]></dc:creator><pubDate>Sun, 30 Aug 2015 20:08:35 GMT</pubDate></item><item><title><![CDATA[Reply to Request user input from nxsl on Sat, 29 Aug 2015 20:02:04 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">no, it's not possible. However, it is possible to create object tools with input fields - depending on what you are trying to achieve it may be good alternative.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/17661</link><guid isPermaLink="true">https://forum.netxms.org/post/17661</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Sat, 29 Aug 2015 20:02:04 GMT</pubDate></item></channel></rss>