<?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[Problem with "Input fields"]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I have used "object tools" to create a server script to do SnmpSet, and it works, then I want to add input by using "input fields". I have created Field1 that is a text type, Field2, text type and Field3 , also text type. How do I retrieve that values of the input fields into the script? I have tried using %(Field1) but it returns nothing.</p>
<p dir="auto">Best regards,<br />
Hans</p>
]]></description><link>https://forum.netxms.org/topic/6715/problem-with-input-fields</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 13:07:39 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6715.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 08 Oct 2020 10:08:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem with "Input fields" on Tue, 13 Oct 2020 10:15:14 GMT]]></title><description><![CDATA[<p dir="auto">You can mark option "tool generates output" in object tool configuration and use println in script for sending output back to client.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/28699</link><guid isPermaLink="true">https://forum.netxms.org/post/28699</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 13 Oct 2020 10:15:14 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with "Input fields" on Tue, 13 Oct 2020 07:15:13 GMT]]></title><description><![CDATA[<p dir="auto">Thanks,</p>
<p dir="auto">after changing to the syntax Filipp described it works perfect, before that I got ( and , in the text argument in the script.<br />
Is there a way to make a messagebox from the script so that I can show the result, if the SNMPSet went well or not?</p>
<p dir="auto">Best regards,<br />
Hans</p>
]]></description><link>https://forum.netxms.org/post/28695</link><guid isPermaLink="true">https://forum.netxms.org/post/28695</guid><dc:creator><![CDATA[HansAnd]]></dc:creator><pubDate>Tue, 13 Oct 2020 07:15:13 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with "Input fields" on Mon, 12 Oct 2020 12:15:55 GMT]]></title><description><![CDATA[<p dir="auto">Actually it's a bit different - script params are now separated by space in this place (might change to brackets in the future at some point) and it's %(), not $(). So the syntax would be:</p>
<p dir="auto">TestScript "%(Field1)" "%(Field2)"</p>
]]></description><link>https://forum.netxms.org/post/28693</link><guid isPermaLink="true">https://forum.netxms.org/post/28693</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Mon, 12 Oct 2020 12:15:55 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with "Input fields" on Mon, 12 Oct 2020 07:20:13 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">you have to pass them as script arguments and then access them via $ARGS array. For example, you can create library script named "TestScript" as this:</p>
<pre><code>trace(0, "field1 = " . $ARGS[1]);
trace(0, "field2 = " . $ARGS[2]);
</code></pre>
<p dir="auto">and configure it in object tool as this:</p>
<pre><code>TestScript("$(Field1)", "$(Field2)")
</code></pre>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/28689</link><guid isPermaLink="true">https://forum.netxms.org/post/28689</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 12 Oct 2020 07:20:13 GMT</pubDate></item></channel></rss>