<?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>Editable grid dropdowns</title><link>https://community.appian.com/discussions/f/general/34884/editable-grid-dropdowns</link><description>Hello, I have editable grid in which I have 3 dropdowns, I&amp;#39;m picking up the values and choices from constants and have rule decisions based on that now for the first row it&amp;#39;s working perfectly fine I select &amp;quot;Region&amp;quot; then &amp;quot;Country&amp;quot; and then &amp;quot;Language&amp;quot;</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Editable grid dropdowns</title><link>https://community.appian.com/thread/134747?ContentTypeID=1</link><pubDate>Mon, 06 May 2024 10:57:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:004ab790-b9c3-4677-bfa4-fbf1613c9145</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;The only advice I can give is, to strictly follow the root cause analysis process. Isolate problematic sections, understand &amp;amp; solve the issues, then recombine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Editable grid dropdowns</title><link>https://community.appian.com/thread/134746?ContentTypeID=1</link><pubDate>Mon, 06 May 2024 10:48:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8fff818e-750f-42bb-a802-aabc835cb4ba</guid><dc:creator>Shwapx</dc:creator><description>&lt;p&gt;Do you have any suggestion on how I can make this work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Editable grid dropdowns</title><link>https://community.appian.com/thread/134733?ContentTypeID=1</link><pubDate>Mon, 06 May 2024 05:34:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bbd0ab15-9ec2-4953-a3b8-6ac06f8ffbcc</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Then, you might want to reconsider your logic regarding that decision.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Editable grid dropdowns</title><link>https://community.appian.com/thread/134729?ContentTypeID=1</link><pubDate>Sun, 05 May 2024 19:53:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1420d652-8aef-4a18-a965-0d7e426160c2</guid><dc:creator>Shwapx</dc:creator><description>&lt;p&gt;Yes line 19 and 30 there I have the rule (which is decision tree) based on selected region to show me certain countries and after that based on country to show me certain languages which works for first row, but adding next give that error.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Editable grid dropdowns</title><link>https://community.appian.com/thread/134728?ContentTypeID=1</link><pubDate>Sun, 05 May 2024 19:17:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0b074d12-ab25-4d38-8942-a399536ee8a6</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Looking at your code, I see that lines 19 and 30 refer to non-constant values.&lt;/p&gt;
&lt;p&gt;Again, to chase down a complex issue, I highly recommend to try to isolate it. Make things working in a simplified example first.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Editable grid dropdowns</title><link>https://community.appian.com/thread/134727?ContentTypeID=1</link><pubDate>Sun, 05 May 2024 19:10:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1309d6ca-27ad-4c25-a8bd-2c1150f34bff</guid><dc:creator>Shwapx</dc:creator><description>&lt;p&gt;But this issue with the value appear once I have field the first row and click on add new row.&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/pastedimage1714936177089v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I fill the first one and when I click on add new row this is the message I got.&lt;br /&gt;&lt;br /&gt;&lt;strong class="StrongText---richtext_strong StrongText---inMessageLayout StrongText---error"&gt;Could not display interface. Please check definition and inputs.&lt;/strong&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Interface Definition: Expression evaluation error at function a!forEach [line 347]: Error in a!forEach() expression during iteration 1: Expression evaluation error at function a!dropdownField [line 366]: A dropdown component [label="Dropdown"] has an invalid value for &amp;quot;value&amp;quot;. All selected values must be present in the choiceValues array, but value was USA and choiceValues was .&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It supposed to add empty row I&amp;#39;m not passing any values. And all the choice values are coming from constants. ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Editable grid dropdowns</title><link>https://community.appian.com/thread/134726?ContentTypeID=1</link><pubDate>Sun, 05 May 2024 19:02:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d14240b6-4a30-4546-996b-39562f4a1119</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;The two issued have nothing to do with each other.&lt;/p&gt;
&lt;p&gt;To the dropdown problem. The error message is very clear. The value you pass into, does not exist in the list of available values.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Editable grid dropdowns</title><link>https://community.appian.com/thread/134724?ContentTypeID=1</link><pubDate>Sun, 05 May 2024 18:55:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9bf44114-0d75-447a-ad65-50cabf6a7bc3</guid><dc:creator>Shwapx</dc:creator><description>&lt;p&gt;Do not make much sense why returns 1, how to work around this. Even if I fill out the first row properly and click on new row I got error that the values are invalid:&lt;br /&gt;&lt;br /&gt;&lt;strong class="StrongText---richtext_strong StrongText---inMessageLayout StrongText---error"&gt;Could not display interface. Please check definition and inputs.&lt;/strong&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Interface Definition: Expression evaluation error at function a!forEach [line 347]: Error in a!forEach() expression during iteration 1: Expression evaluation error at function a!dropdownField [line 363]: A dropdown component [label="Dropdown"] has an invalid value for &amp;quot;value&amp;quot;. All selected values must be present in the choiceValues array, but value was USA and choiceValues was .&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Editable grid dropdowns</title><link>https://community.appian.com/thread/134722?ContentTypeID=1</link><pubDate>Sun, 05 May 2024 12:48:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d495b04b-dd3a-40d2-93fa-ab87690481ca</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;The documentation of the count() function says:&lt;/p&gt;
&lt;p&gt;&amp;quot;Returns the number items in all arrays passed to the function. &lt;strong&gt;Null parameters are also counted&lt;/strong&gt;.&amp;quot;&lt;/p&gt;
&lt;p&gt;That&amp;#39;s exactly explains the behaviour you observe. An empty list counts to 1, adding 1 equals 2. After adding the first item, count() returns 1 again.&lt;/p&gt;
&lt;p&gt;Regarding drop downs, I highly suggest to do your research and learning outside a grid. Once you fully understand how these work, continue with that grid.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Editable grid dropdowns</title><link>https://community.appian.com/thread/134721?ContentTypeID=1</link><pubDate>Sun, 05 May 2024 12:09:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d3c49cb3-6197-4af9-b30c-cb0534c4d60a</guid><dc:creator>Shwapx</dc:creator><description>&lt;p&gt;That fix the error, but not fix the solution.&amp;nbsp;&lt;a href="/members/vinaykumarp8308"&gt;vinaykumar&lt;/a&gt;&amp;nbsp;&lt;a href="/members/stefanhelzle0001"&gt;Stefan Helzle&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1714910854832v1.png" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The weird is when I add more fields the first 2 are starting with document id 2 then it&amp;#39;s going 3, 4.. etc..&lt;br /&gt;&lt;br /&gt;adding first row is no problem:&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1714910923488v2.png" /&gt;&lt;br /&gt;&lt;br /&gt;then after I click on add new i got an error:&lt;br /&gt;&lt;br /&gt;&lt;strong class="StrongText---richtext_strong StrongText---inMessageLayout StrongText---error"&gt;Could not display interface. Please check definition and inputs.&lt;/strong&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Interface Definition: Expression evaluation error at function a!forEach [line 347]: Error in a!forEach() expression during iteration 1: Expression evaluation error at function a!dropdownField [line 363]: A dropdown component [label="Dropdown"] has an invalid value for &amp;quot;value&amp;quot;. All selected values must be present in the choiceValues array, but value was USA and choiceValues was .&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Seems like it&amp;#39;s picking the values from above or idk what exactly is happening.&lt;br /&gt;&lt;br /&gt;I feel like if I work with local variables everything is working good, but then I&amp;#39;m not able to pass this into process model to save the data in records.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Editable grid dropdowns</title><link>https://community.appian.com/thread/134720?ContentTypeID=1</link><pubDate>Sun, 05 May 2024 07:43:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6a46629a-ae80-4f10-a05f-7cd669f6065f</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;You need to change this snippet&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;value: &amp;#39;recordType!AOS_Documents_Required&amp;#39;(

documentId: count(ri!AOS_Documents_Required) +1

),&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;according to the way how record fields are referenced.&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://docs.appian.com/suite/help/24.1/reference-records.html"&gt;https://docs.appian.com/suite/help/24.1/reference-records.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;value: &amp;#39;recordType!AOS_Documents_Required&amp;#39;(

&amp;#39;recordType!AOS_Documents_Required&amp;#39;.fields.&amp;#39;documentId&amp;#39;: count(ri!AOS_Documents_Required) +1

),&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Editable grid dropdowns</title><link>https://community.appian.com/thread/134719?ContentTypeID=1</link><pubDate>Sun, 05 May 2024 06:13:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1cb8204e-c2de-4fd7-9b56-e37c842654a3</guid><dc:creator>Shwapx</dc:creator><description>&lt;p&gt;After following what you suggested I got error in the expression:&lt;br /&gt;&lt;br /&gt;&lt;strong class="StrongText---richtext_strong StrongText---inMessageLayout StrongText---error"&gt;Could not display interface. Please check definition and inputs.&lt;/strong&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Interface Definition: Expression evaluation error at function a!dynamicLink [line 402]: Keys must be record field references or record relationship references&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;                    addRowLink: a!dynamicLink(
                        label: &amp;quot;Add new&amp;quot;,
                        value: &amp;#39;recordType!{c80b9de7-a15f-41db-8c92-5cb6b7aa7ce3}AOS_Documents_Required&amp;#39;(
                          DocumentID: count(ri!AOS_Documents_Required) +1
                        ),
                        saveInto: a!save(
                          ri!AOS_Documents_Required,
                          append(
                            ri!AOS_Documents_Required,
                            save!value
                          )
                        )
                      ),
                      validations: {},
                      shadeAlternateRows: true&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Editable grid dropdowns</title><link>https://community.appian.com/thread/134717?ContentTypeID=1</link><pubDate>Sun, 05 May 2024 00:50:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f232a0e2-574f-4674-924d-e538c6da1a65</guid><dc:creator>vinaykumar</dc:creator><description>&lt;p&gt;Hello &lt;a href="/members/vasilc0001"&gt;Shwapx&lt;/a&gt; ,&lt;/p&gt;
&lt;p&gt;Try differentiating the rows by an id while you click add row link.&lt;/p&gt;
&lt;p&gt;And save the value in proper way.&lt;/p&gt;
&lt;p&gt;value: &amp;#39;recordType!AOS_Documents_Required&amp;#39;(&lt;/p&gt;
&lt;p&gt;documentId: count(ri!AOS_Documents_Required) +1&lt;/p&gt;
&lt;p&gt;),&lt;/p&gt;
&lt;p&gt;saveInto: a!save(&lt;/p&gt;
&lt;p&gt;ri!AOS_Documents_Required,&lt;/p&gt;
&lt;p&gt;append(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ri!AOS_Documents_Required,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; save!value&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/p&gt;
&lt;p&gt;)&lt;/p&gt;
&lt;p&gt;Refer the &lt;a href="https://docs.appian.com/suite/help/24.1/recipe-add-edit-and-remove-data-in-an-inline-editable-grid.html"&gt;Editable Grid&lt;/a&gt; for reference.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>