<?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[DCI tables]]></title><description><![CDATA[<p dir="auto">Очень удобная вещь для сбора однотипных данных - таблицы DCI, но функционал ограничен. Есть ли способ сделать transformation для columns?</p>
]]></description><link>https://forum.netxms.org/topic/3993/dci-tables</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 15:40:22 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3993.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 20 Sep 2015 15:30:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DCI tables on Fri, 30 Oct 2015 08:36:43 GMT]]></title><description><![CDATA[<p dir="auto">Прикладываю скрин</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000002601-screen.png" alt="screen.png" class="img-markdown  img-fluid" width="1113" height="648" /></p>
]]></description><link>https://forum.netxms.org/post/18147</link><guid isPermaLink="true">https://forum.netxms.org/post/18147</guid><dc:creator><![CDATA[Harun]]></dc:creator><pubDate>Fri, 30 Oct 2015 08:36:43 GMT</pubDate></item><item><title><![CDATA[Reply to DCI tables on Thu, 29 Oct 2015 20:03:06 GMT]]></title><description><![CDATA[<p dir="auto">А как выглядит описание столбцов в настройках DCI?</p>
]]></description><link>https://forum.netxms.org/post/18134</link><guid isPermaLink="true">https://forum.netxms.org/post/18134</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 29 Oct 2015 20:03:06 GMT</pubDate></item><item><title><![CDATA[Reply to DCI tables on Wed, 21 Oct 2015 04:49:21 GMT]]></title><description><![CDATA[<p dir="auto">Странное дело, по какой-то причиние в Table Last Value я вижу только три столбца, сколько бы я их не добавлял, причем данные по невидимым столбцам собираются. Для решения проблемы удаляю кеш клиента (каталог ~/.nxmc), но при новом добавлении столбцов приходиться чистить заново.</p>
]]></description><link>https://forum.netxms.org/post/18064</link><guid isPermaLink="true">https://forum.netxms.org/post/18064</guid><dc:creator><![CDATA[Harun]]></dc:creator><pubDate>Wed, 21 Oct 2015 04:49:21 GMT</pubDate></item><item><title><![CDATA[Reply to DCI tables on Wed, 21 Oct 2015 04:18:50 GMT]]></title><description><![CDATA[<p dir="auto">Всё, нашел:<br />
<a href="https://www.netxms.org/forum/configuration/transformations-scripts-for-table-dci/" rel="nofollow ugc">https://www.netxms.org/forum/configuration/transformations-scripts-for-table-dci/</a></p>
<pre><code>idxVoltage = $1-&gt;getColumnIndex("input voltage");

for(i = 0; i &lt; $1-&gt;rowCount; i++)
{
   $1-&gt;set(i, idxVoltage, $1-&gt;get(i, idxVoltage) / 10);
}
</code></pre>
]]></description><link>https://forum.netxms.org/post/18063</link><guid isPermaLink="true">https://forum.netxms.org/post/18063</guid><dc:creator><![CDATA[Harun]]></dc:creator><pubDate>Wed, 21 Oct 2015 04:18:50 GMT</pubDate></item><item><title><![CDATA[Reply to DCI tables on Wed, 21 Oct 2015 04:14:58 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://wiki.netxms.org/wiki/NXSL:TableColumn" rel="nofollow ugc">https://wiki.netxms.org/wiki/NXSL:TableColumn</a><br />
Непонятно,  а в каком атрибуте хранится собственно value? Как его изменить? Вот например таблица со значением входных напряжений, мне нужно значение поделить на 10:</p>
<pre><code>for (i=0;i&lt;$1-&gt;columnCount;i++)
{
	column = $1-&gt;columns[i];
	switch (column-&gt;name)
	{
		case "input voltage":
		break;
	}
}
</code></pre>
<p dir="auto">Я так понимаю, нужно воспользоваться методом getColumnIndex, но в вики нет документации по методам.</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000002550-upses.png" alt="upses.png" class="img-markdown  img-fluid" width="443" height="72" /></p>
]]></description><link>https://forum.netxms.org/post/18062</link><guid isPermaLink="true">https://forum.netxms.org/post/18062</guid><dc:creator><![CDATA[Harun]]></dc:creator><pubDate>Wed, 21 Oct 2015 04:14:58 GMT</pubDate></item><item><title><![CDATA[Reply to DCI tables on Sat, 17 Oct 2015 17:14:16 GMT]]></title><description><![CDATA[<p dir="auto">Есть - для таблиц тоже можно делать transformation script - на входе в $1 он получает объект класса <a href="https://wiki.netxms.org/wiki/NXSL:Table" rel="nofollow ugc">Table</a>, по которому можно пройти в цикле по всем строкам и внести изменения.</p>
]]></description><link>https://forum.netxms.org/post/18004</link><guid isPermaLink="true">https://forum.netxms.org/post/18004</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Sat, 17 Oct 2015 17:14:16 GMT</pubDate></item></channel></rss>