<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/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>Save array in rule input</title><link>https://community.appian.com/discussions/f/general/34844/save-array-in-rule-input</link><description>Hello, I have editable grid where I&amp;#39;m trying to save all the selections in rule input after that I will use the rule input to push the data to database. The problem is that I&amp;#39;m not able to save the multi drop down as an array when I select more then one</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Save array in rule input</title><link>https://community.appian.com/thread/134619?ContentTypeID=1</link><pubDate>Thu, 02 May 2024 15:40:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:70414b8e-01ef-420d-a712-59a5890b6579</guid><dc:creator>Shwapx</dc:creator><description>&lt;p&gt;One last question from me and I will go and close the discussion. Is there a place where I can see how to setup properly multi drop down field in records? I feel like there is lack of information in general, there are not that many videos and guides online.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Save array in rule input</title><link>https://community.appian.com/thread/134618?ContentTypeID=1</link><pubDate>Thu, 02 May 2024 14:18:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4b572a03-1064-4c35-8ff4-5874f3e78bcf</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Yes generally your data structure needs to account for when a single entry needs to be tied to several sub-items by ID - you can&amp;#39;t just magically force a single selection data column handle multiple selections of something.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Save array in rule input</title><link>https://community.appian.com/thread/134614?ContentTypeID=1</link><pubDate>Thu, 02 May 2024 13:45:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2a9fcf5a-e6e2-44ae-a270-5dae841622a8</guid><dc:creator>Vasil Chetinov</dc:creator><description>&lt;p&gt;So this is what you suggest.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If each &amp;quot;document&amp;quot; (row) needs to hold &lt;/span&gt;&lt;em&gt;&lt;strong&gt;many&lt;/strong&gt;&lt;/em&gt;&lt;span&gt; &amp;quot;SDS Language&amp;quot; IDs, then you&amp;#39;d need to make a separate table to hold each instance of a Language ID and the Document ID it belongs to.&amp;nbsp; I assume there&amp;#39;s a way to use Record Relationships to make managing this on the front-end a bit faster.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Save array in rule input</title><link>https://community.appian.com/thread/134613?ContentTypeID=1</link><pubDate>Thu, 02 May 2024 12:38:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9c13ce82-9ffb-47e6-984f-efebd9bb9152</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="234483" url="~/discussions/f/general/34844/save-array-in-rule-input/134591"]Isn&amp;#39;t multiple dropdown supposed to make array which means have all the values in one field [/quote]
&lt;p&gt;Not if your data structure doesn&amp;#39;t support it - and since each row of your data ties to a single integer field for this value, that means each row can hold a single value for that item.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Save array in rule input</title><link>https://community.appian.com/thread/134591?ContentTypeID=1</link><pubDate>Thu, 02 May 2024 07:06:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:37c05ddf-d9f6-42e9-935b-fe06e24d4ae7</guid><dc:creator>Shwapx</dc:creator><description>&lt;p&gt;But Isn&amp;#39;t multiple dropdown supposed to make array which means have all the values in one field so it will be 1 row even if you have multiple dropdown. Or I guess it&amp;#39;s not working like that. I&amp;#39;m now curious of how people use multiple dropdown it seems weird.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Save array in rule input</title><link>https://community.appian.com/thread/134584?ContentTypeID=1</link><pubDate>Wed, 01 May 2024 19:16:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:02c8d3f4-b8bd-4f26-851a-facd5993da54</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;So you&amp;#39;re trying to use a Multiple Dropdown for &amp;quot;SDS_Language&amp;quot;.&amp;nbsp; But for each row of your db / record, it is a single ID.&amp;nbsp; That means each row can store a single associated ID, meaning you can&amp;#39;t use a multiple dropdown for it (which explains why it isn&amp;#39;t working).&lt;/p&gt;
&lt;p&gt;If each &amp;quot;document&amp;quot; (row) needs to hold &lt;em&gt;&lt;strong&gt;many&lt;/strong&gt;&lt;/em&gt; &amp;quot;SDS Language&amp;quot; IDs, then you&amp;#39;d need to make a separate table to hold each instance of a Language ID and the Document ID it belongs to.&amp;nbsp; I assume there&amp;#39;s a way to use Record Relationships to make managing this on the front-end a bit faster, though I haven&amp;#39;t used that functionality enough myself yet to provide much specific assistance there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Save array in rule input</title><link>https://community.appian.com/thread/134583?ContentTypeID=1</link><pubDate>Wed, 01 May 2024 19:12:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3e9ff42a-b760-4064-bf6b-44dff3a7e8b3</guid><dc:creator>Shwapx</dc:creator><description>&lt;p&gt;Here is the table:&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1714590684684v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;Now I have requestID as relation ship with another table which will eventually store all of the information for single request. So for single request I can have multiple documents rows. And I have one to many relationship.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Save array in rule input</title><link>https://community.appian.com/thread/134582?ContentTypeID=1</link><pubDate>Wed, 01 May 2024 18:57:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d7cb3e41-feb1-4d49-91fb-da5fe29a4855</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Is it just writing to a single column in the DB table?&amp;nbsp; Because if so, it can&amp;#39;t really easily hold multiple values.&amp;nbsp; You&amp;#39;d need to set up a link table or something.&lt;/p&gt;
[quote userid="234483" url="~/discussions/f/general/34844/save-array-in-rule-input/134581"]Actually how to setup it as an array in my record type setup[/quote]
&lt;p&gt;I&amp;#39;m not actually sure that&amp;#39;s possible.&amp;nbsp; Are you able to show a screenshot of the configuration of the associated DB table?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Save array in rule input</title><link>https://community.appian.com/thread/134581?ContentTypeID=1</link><pubDate>Wed, 01 May 2024 18:49:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e8d8b7ed-85ed-47fb-a01a-5b3b6a529cea</guid><dc:creator>Shwapx</dc:creator><description>&lt;p&gt;Actually how to setup it as an array in my record type setup, because I don&amp;#39;t see that option. I&amp;#39;ve just created the records using the interface. And they are all integers since the dropdown choices are with numbers, so 1 will be &amp;quot;Option 1&amp;quot;, 2 will be &amp;quot;Option 2&amp;quot;.. of course that data will be changes later on. So in SDS_Language i want to store for example 1,2 which will be Option 1, Option 2 and also the other 2 columns which are single dropdown selection which works fine and it&amp;#39;s saved properly in the rule input.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Save array in rule input</title><link>https://community.appian.com/thread/134579?ContentTypeID=1</link><pubDate>Wed, 01 May 2024 17:52:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f5b3fc8e-9b16-4335-9400-7b13cfc9d7f7</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Generally we don&amp;#39;t store multiple values in a single field of a single row of a record / CDT.&amp;nbsp; Or are you saying &amp;quot;SDS_Language&amp;quot; is actually configured as an array within your record type setup?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Save array in rule input</title><link>https://community.appian.com/thread/134578?ContentTypeID=1</link><pubDate>Wed, 01 May 2024 17:40:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:78e635c1-9e90-4e93-83f6-a90d73dd92a4</guid><dc:creator>Shwapx</dc:creator><description>&lt;p&gt;So what I should do, how I can proceed with this? Isn&amp;#39;t this the essential of Appian to be able to work with records, how to submit the form when I need the data in rule input to be able to submit it via process model? I think I&amp;#39;m not getting something, I have the ability to use multi drop down, but I don&amp;#39;t have the ability to save the values from it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Save array in rule input</title><link>https://community.appian.com/thread/134573?ContentTypeID=1</link><pubDate>Wed, 01 May 2024 17:05:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:65e2bf61-a3d2-4de8-a691-7588ce960dc0</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="234483" url="~/discussions/f/general/34844/save-array-in-rule-input/134570"]But it&amp;#39;s saving if you use local variables[/quote]
&lt;p&gt;Local variables (depending on what you&amp;#39;re trying) can slightly more easily store arrays inside variables inside parent arrays - this is usually not as easy to do with CDT data however.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Save array in rule input</title><link>https://community.appian.com/thread/134570?ContentTypeID=1</link><pubDate>Wed, 01 May 2024 16:00:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7b9c102a-d935-4a48-84ce-13e3b1b83bce</guid><dc:creator>Shwapx</dc:creator><description>&lt;p&gt;But it&amp;#39;s saving if you use local variables, so I can save multiple values in single multi drop property. I&amp;#39;m using Records and it&amp;#39;s setup like this:&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1714579240741v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Save array in rule input</title><link>https://community.appian.com/thread/134569?ContentTypeID=1</link><pubDate>Wed, 01 May 2024 15:55:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fddc9008-ae45-41e6-a564-9530a9754c29</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;The simple answer is you probably won&amp;#39;t be able to save multiple values into a single-value field in a single row of a CDT / RecordType data, depending I suppose on how you have the &amp;quot;SDS_Data&amp;quot; property of your record type configured.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>