<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Dynamic setting of data source</title><link>https://www.aras.com/community/f/development/3993/dynamic-setting-of-data-source</link><description>Hi,

I have a query regading data source attribute of Item Dropdown field of a form. Is it possible to set the data source (Item Type) of a dropdown (field type as item) dynamically/programmatically? Can you let me know how I can achieve this?

I would</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Dynamic setting of data source</title><link>https://www.aras.com/community/thread/2203?ContentTypeID=1</link><pubDate>Fri, 26 Oct 2018 11:45:42 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:3d6a5c06-ae32-4a22-aeb6-bc3276f3a234</guid><dc:creator>Alexis Amirtharaj</dc:creator><description>Hi,

You have understood my query very well. Thank you for providing links to solutions that are close to what I was looking for.

I could achieve my goal with the help of the solutions from the page: &lt;a href="http://community.aras.com/fr/forums/topic/dont-close-the-searchdialog/"&gt;http://community.aras.com/fr/forums/topic/dont-close-the-searchdialog/&lt;/a&gt;

Using the solution provided on the above page, I could build a dynamic search solution by providing different parameters (different types of items), allowing the users to dynamically search for items and update them for later use.

With regards,

Alexis.

&amp;nbsp;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic setting of data source</title><link>https://www.aras.com/community/thread/2202?ContentTypeID=1</link><pubDate>Fri, 26 Oct 2018 07:55:35 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:635ed171-32ff-4107-b337-10d866ab1f4a</guid><dc:creator>AngelaIp</dc:creator><description>So you don´t want to create a dynamic dropdown, but a dynamic search dialog?

This sample also contains code of how to call a search dialog:
&lt;code&gt;&lt;a href="https://github.com/ArasLabs/custom-modal-dialog"&gt;github.com/.../custom-modal-dialog&lt;/a&gt;&lt;/code&gt;

The search dialog used in the sample is static. But I think it´s possible to pass some arguments.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic setting of data source</title><link>https://www.aras.com/community/thread/2201?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 08:51:47 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:d811c1fe-d08a-44ee-973a-6b9c18bf423c</guid><dc:creator>Alexis Amirtharaj</dc:creator><description>Two more points to clarify my previous message.
&lt;ol&gt;
 	&lt;li&gt;&amp;#39;Show instance&amp;#39; in my previous message means a mechanism to show the form related to that grid (relationship tab).&lt;/li&gt;
 	&lt;li&gt;Clicking on the three dots on the dropdown box opens up the search dialog with options to select an item.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic setting of data source</title><link>https://www.aras.com/community/thread/2200?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 07:36:11 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:9f79c42c-2152-4c66-80eb-9750fa46558b</guid><dc:creator>Alexis Amirtharaj</dc:creator><description>Hi,

Thank you for your quick reply with solutions in this context. While I will take a closer look into your suggestions, I would also like to add more clarity to my query. I am not trying to create a list for the dropdown box. I am using the dropdown box with the field type of &amp;#39;item&amp;#39; which allows me to pick an item and assign it to the same field.

For example, let&amp;#39;s say I have the following items on a grid with four columns (Name of the attribute, Value as a string value, Data type, Data source if applicable)

&amp;#39;A&amp;#39;    &amp;lt;value&amp;gt;    &amp;#39;item&amp;#39;    &amp;#39;user&amp;#39;

&amp;#39;B&amp;#39;      &amp;lt;value&amp;gt;   &amp;#39;string&amp;#39;

&amp;#39;C&amp;#39;      &amp;lt;value&amp;gt;   &amp;#39;item&amp;#39;     &amp;#39;order&amp;#39;

So, when the user selects &amp;#39;Show instance&amp;#39; on Row A, the form would have a dropdown box of type &amp;#39;item&amp;#39; and data source &amp;#39;user&amp;#39; (which is an item type).
And when the user selects  &amp;#39;Show instance&amp;#39; on Row C, the form would have a dropdown box of type &amp;#39;item&amp;#39; and data source &amp;#39;order&amp;#39; (which is an item type).

Many thanks for your support.

Alexis.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic setting of data source</title><link>https://www.aras.com/community/thread/2199?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 06:03:24 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:4730cd54-5dc7-47a2-8f4a-18f127051fb8</guid><dc:creator>AngelaIp</dc:creator><description>Hi Alexis,

the chapter &amp;quot;Dynamically Populate Dropdown&amp;quot; in this article is maybe a good start for this usecase:
&lt;code&gt;&lt;a href="http://community.aras.com/en/tech-tip-dynamically-change-type-ahead-english/"&gt;community.aras.com/.../&lt;/a&gt;&lt;/code&gt;

I do something similar here: &lt;code&gt;&lt;a href="https://github.com/AngelaIp/cui-select-starting-page"&gt;github.com/.../cui-select-starting-page&lt;/a&gt;&lt;/code&gt;

In both sample static lists are used. It should be possible to dynamically chose the target List for the dropdown accoring to the dropdown list used in the ItemTypes.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic setting of data source</title><link>https://www.aras.com/community/thread/2198?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 01:29:03 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:8d101924-89fc-4bf5-8915-ff4f0b9630a2</guid><dc:creator>Alexis Amirtharaj</dc:creator><description>In other words, I am trying to find out how to rebind a dropdown to different item types using javascript based on the grid row that&amp;#39;s selected. I am thinking of dynamically loading a form with an item dropdown control with different data sources as a solution. Please also let me if there&amp;#39;s a way of achieving this using table/grid view. If so, how I can achieve this, please?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>