<?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[Dialog plus does not show multiple entrys via api]]></title><description><![CDATA[<p dir="auto">Hi Guys,</p>
<p dir="auto">im trying to realize a ssh public key distribution system based on idoit. I do have some troubles concerning dialog plus fields though:</p>
<p dir="auto">1. I created a custom dialog+ called "sshgroups" and filled it with values like DEV, TEST, QA and the likes<br />
2. Created a custom category called "ssh" and put above "sshgroups" as a field inside<br />
3. Used the Quick configuration wizard to put the custom category under Kontakte-&gt;Personen-&gt;ssh<br />
4. Went into Kontakte-&gt;Personen and assigned some values in the sshgroups dialog plus to a random person e.g. "max mustermann" has values QA and DEV and TEST</p>
<p dir="auto">Now when i call cmdb.objects.read with params filter =&gt; {type =&gt; 53} i am able to loop through all the persons and get the objid of "max mustermann".<br />
So when i now call cmdb.category.read with params  objID =&gt; {id of max mustermann}, category =&gt; "C__CATG__CUSTOM_FIELD<br />
S_SSH"</p>
<p dir="auto">i get the following datastructure for the dialog+ field:</p>
<pre><code>
          'f_popup_c_1480604992331' =&gt; {
                                         'identifier' =&gt; 'SSH_Groups',
                                         'title_lang' =&gt; 'QA',
                                         'const' =&gt; undef,
                                         'title' =&gt; 'QA',
                                         'id' =&gt; '21'
                                       },

</code></pre>
<p dir="auto">In this structure only the first entry of the persons ssh group (QA) is shown. However i selected multiple groups QA and DEV and TEST.<br />
Is there something i am missing about dialog plus fields? i can read all other kinds of fields with the method shown above, but with dialog+ i never get all the selected values in my data structure.</p>
<p dir="auto">EDIT: Forgot to mention. Im using JSON::RPC::Legacy::Client; with perl to query the api.</p>
<p dir="auto">Thanks everybody for helping me out!</p>
]]></description><link>https://community.i-doit.com/topic/3151/dialog-plus-does-not-show-multiple-entrys-via-api</link><generator>RSS for Node</generator><lastBuildDate>Thu, 13 Aug 2026 18:42:52 GMT</lastBuildDate><atom:link href="https://community.i-doit.com/topic/3151.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 28 Mar 2017 13:37:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dialog plus does not show multiple entrys via api on Fri, 16 Mar 2018 12:45:49 GMT]]></title><description><![CDATA[<ol start="4">
<li>Its no possible in 1.10 to have two different Dialog+ Fields with the same value. This was possible in 1.9 versions though.</li>
</ol>
<p dir="auto">To reproduce create 2 custom dialog+ fields. For example use "SSH User Groups" und "SSH Server Groups".<br />
In "Dialog-Admin" -&gt; "Custom Dialog+"  try to enter the same value (e.g. QA) into both. This results in the following error:</p>
<p dir="auto">Error!<br />
General error: Following values could not be saved because it would lead to duplicate entries: QA</p>
<ol start="5">
<li>Its possible to enter a numeric "0" into a dialog+ field via api but not via the administration ui.</li>
</ol>
]]></description><link>https://community.i-doit.com/post/13278</link><guid isPermaLink="true">https://community.i-doit.com/post/13278</guid><dc:creator><![CDATA[beku]]></dc:creator><pubDate>Fri, 16 Mar 2018 12:45:49 GMT</pubDate></item><item><title><![CDATA[Reply to Dialog plus does not show multiple entrys via api on Fri, 09 Mar 2018 14:00:44 GMT]]></title><description><![CDATA[<p dir="auto">Nearly a year after i opened this issue , we updated to version 1.10.1 and the api plugin to 1.9 to see if we could finally use dialog+ fields. However now we stumbled upon a multitude of new bugs concerning dialog+ fields:</p>
<p dir="auto">1. Undeletable Multivalue in GUI</p>
<p dir="auto">Description:<br />
Multiple Dialog+ selections will not be deleted in IDOIT gui.<br />
How to reproduce:</p>
<ul>
<li>We have the following Objecttype hierarchy in Quick configuration Wizard "Infrastruktur-&gt;Server".</li>
<li>Added User Defined Category "Users"</li>
<li>Under Users we have a Dialog+ field called SSH Groups (where we have Values like "QA", "Staging" etc.)</li>
<li>Choose multiple SSH Groups-&gt;Save</li>
<li>Try to delete all those SSH Groups-&gt;Save</li>
<li>Values are not deleted</li>
</ul>
<p dir="auto">2. Output Bug Dialog+ via API</p>
<p dir="auto">Description:<br />
When calling cmdb.category.read on a custom category with dialog+ fields, the output of the json object is utterly bugged.</p>
<p dir="auto">How to reproduce:</p>
<ul>
<li>We have the following Objecttype hierarchy in Quick configuration Wizard "Infrastruktur-&gt;Server".</li>
<li>Added User Defined Category "Users"</li>
<li>Under Users we have a Dialog+ field called SSH Groups (where we have Values like "QA", "Staging" etc.)</li>
<li>Call cmdb.category.read on it.</li>
<li>Receive the following strange output:</li>
</ul>
<p dir="auto">shortened response:</p>
<p dir="auto">{<br />
                "f_text_c_1455200871361": "agage",<br />
                "f_text_c_1455200573923": "test1",<br />
                "objID": "1378",<br />
                "f_text_c_1455200588403": "fsfs",<br />
                "id": "4257",<br />
                "f_text_c_1455200581454": "teshome",<br />
                "f_text_c_1455200835586": "ffa",<br />
                "f_popup_c_1480427993531": {<br />
                                  "identifier": "SSH_Groups"<br />
                }<br />
},<br />
{<br />
                "f_text_c_1455200871361": null,<br />
                "f_text_c_1455200573923": null,<br />
                "objID": "1378",<br />
                "f_text_c_1455200588403": null,<br />
                "id": "4257",<br />
                "f_text_c_1455200581454": null,<br />
                "f_text_c_1455200835586": null,<br />
                "f_popup_c_1480427993531": {<br />
                                  "identifier": "SSH_Groups",<br />
                                  "const": null,<br />
                                  "id": "12",<br />
                                  "title": "EDI",<br />
                                  "title_lang": "EDI"<br />
                }<br />
}</p>
<ul>
<li>As you can see the output contains two "datasets" and one has only empty fields except correct dialog+ info. The other has all fields filled correctly but no dialog+ info. This surely is not how its supposed to be…</li>
</ul>
<p dir="auto">3. When configuring Events to execute a Script. The "from" field in the changes section is wrong.</p>
<ul>
<li>Configure Events to execute an external script when saving datasets.</li>
<li>in the script decode base64 and parse the json data</li>
<li>look at changes-&gt;from field its always undef.</li>
</ul>
]]></description><link>https://community.i-doit.com/post/13264</link><guid isPermaLink="true">https://community.i-doit.com/post/13264</guid><dc:creator><![CDATA[beku]]></dc:creator><pubDate>Fri, 09 Mar 2018 14:00:44 GMT</pubDate></item><item><title><![CDATA[Reply to Dialog plus does not show multiple entrys via api on Mon, 13 Nov 2017 09:27:14 GMT]]></title><description><![CDATA[<p dir="auto">I also stumbled on the Issue myself with API 1.8.1<br />
The API Shows the last element from the multiselect.  The following steps reproduce the Error:</p>
<ul>
<li>
<p dir="auto">Create Custom Category (Test)</p>
</li>
<li>
<p dir="auto">Assign to an ObjectType (server)</p>
</li>
<li>
<p dir="auto">Add Field Dialog+ (Multple Select)</p>
</li>
<li>
<p dir="auto">Edit one Object From the Type and add multiple Values for TestField (TestData1, TestData2) ..</p>
</li>
<li>
<p dir="auto">Call The Test-Category on the Object and The API delivers only the last Multivalue (TestData2).</p>
</li>
</ul>
<p dir="auto">I could get all the Multiselect values with the following Patch on</p>
<pre><code>
/src/classes/modules/cmdb/dao/category/global/isys_cmdb_dao_category_g_custom_fields.class.php
855,856c855,863
&lt;                 $l_catentries[$i]
&lt;                 [$l_field_key] = $l_row['isys_catg_custom_fields_list__field_content'];
---
&gt;                 if (array_key_exists($l_field_key, $l_catentries[$i])) {
&gt;                     if (! is_array($l_catentries[$i][$l_field_key])) {
&gt;                         $l_catentries[$i][$l_field_key] = array($l_catentries[$i][$l_field_key]);
&gt;                     }
&gt;                     $l_catentries[$i][$l_field_key][] = $l_row['isys_catg_custom_fields_list__field_content'];
&gt;                 } else {
&gt;                       $l_catentries[$i][$l_field_key] = $l_row['isys_catg_custom_fields_list__field_content'];
&gt;                 }
&gt;

</code></pre>
]]></description><link>https://community.i-doit.com/post/13093</link><guid isPermaLink="true">https://community.i-doit.com/post/13093</guid><dc:creator><![CDATA[pklinkov]]></dc:creator><pubDate>Mon, 13 Nov 2017 09:27:14 GMT</pubDate></item><item><title><![CDATA[Reply to Dialog plus does not show multiple entrys via api on Tue, 04 Apr 2017 13:47:31 GMT]]></title><description><![CDATA[<p dir="auto">Hi beku,</p>
<p dir="auto">Welcome to the i-doit forums!</p>
<p dir="auto">I can confirm that you discovered a bug in the API add-on. While testing I found some more bugs for custom dialog+ fields and raised coresponding tickets in the developer's issue tracker. They will be resolved in one of the next releases. Thanks for the report!</p>
<p dir="auto">Greetings,<br />
Benjamin</p>
]]></description><link>https://community.i-doit.com/post/12620</link><guid isPermaLink="true">https://community.i-doit.com/post/12620</guid><dc:creator><![CDATA[bheisig]]></dc:creator><pubDate>Tue, 04 Apr 2017 13:47:31 GMT</pubDate></item></channel></rss>