<?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>multi dropdown in a grid</title><link>https://community.appian.com/discussions/f/user-interface/12727/multi-dropdown-in-a-grid</link><description>The below code is throwing the above error. Please advise a correct way of doing this. using a dropdown column in a Grid. Grid rows are in a foreach loop and dropdown saveinto has another nested foreach loop and how to map the rights values to be able</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: multi dropdown in a grid</title><link>https://community.appian.com/thread/56989?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 09:41:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9ad0c6a7-4280-4e78-b0a6-d3413a8dfd7b</guid><dc:creator>anushas0002</dc:creator><description>service is fine and showing the dropdown and values in another form correctly where there is no editable grid and just form with multidropdown. It is not working inside EditableGrid.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi dropdown in a grid</title><link>https://community.appian.com/thread/56988?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 09:41:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:db782fd1-73ec-4d58-a246-40bc6c704952</guid><dc:creator>anushas0002</dc:creator><description>Tried this and throws different error on Name field:&lt;br /&gt;
&lt;br /&gt;
Could not display interface. Please check definition and inputs.&lt;br /&gt;
Interface Definition: Expression evaluation error at function a!forEach [line 48]: Error in a!forEach() expression during iteration 4: Expression evaluation error at function a!multipleDropdownField [line 69]: Invalid index: Cannot index property &amp;#39;Name&amp;#39; of type Text into null value of type Technologies?list&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi dropdown in a grid</title><link>https://community.appian.com/thread/56987?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 09:37:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:82e76bf9-670b-446c-ad28-8b1fa76e7e87</guid><dc:creator>dipaki</dc:creator><description>Hi @anushas0002 , try the below code. If you select a name the entire Technology CDT for that name will be selected. And all your selected names(Technologies CDT) will be saved into list of Technologies CDT.&lt;br /&gt;
&lt;br /&gt;
a!multipleDropdownField(&lt;br /&gt;
                  label: &amp;quot;&amp;quot;,&lt;br /&gt;
                  choiceLabels: fv!item.Technologies.Name,&lt;br /&gt;
                  choiceValues: fv!item.Technologies,&lt;br /&gt;
                  value: fv!item.Technologies,&lt;br /&gt;
                  saveInto:  fv!item.Technologies&lt;br /&gt;
)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi dropdown in a grid</title><link>https://community.appian.com/thread/56986?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 09:37:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:377db2e6-0103-45c3-b435-fcb4a505fd99</guid><dc:creator>paragk998</dc:creator><description>Are you getting data from service ?&lt;br /&gt;
because Appian do not support multiple to multiple&lt;br /&gt;
&lt;br /&gt;
you can try&lt;br /&gt;
comment code and pass rows as  rows:{}&lt;br /&gt;
take another textField(label:debug, value: local!sources ) to display  local!sources value in your interface.&lt;br /&gt;
&lt;br /&gt;
then check loacal!sources value and share it.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi dropdown in a grid</title><link>https://community.appian.com/thread/56985?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 09:25:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:23f5b2f2-ee58-4e52-b923-c4393f12f5b5</guid><dc:creator>anushas0002</dc:creator><description>&lt;p&gt;There are two tables sources and technologies with many to many relationship. Therefore, Each Source has more than one technologies in this grid which needs to be shown as preselected values. sample data is below but its lengthy. Please refer to the above another screenshot which shows error message on Editable Grid when tried to click on &amp;quot;Add New Source(s)&amp;quot; link and it is same error when I try to change the preselected values in multi dropdown.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/13/pastedimage1529573173871v1.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1529573173871v1.png" alt=" " /&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt; Sources&lt;br /&gt; Id: 2&lt;br /&gt; DisplayName: &amp;quot;Artificial Intelligence&amp;quot;&lt;br /&gt; FullName: &amp;quot;Artificial Intelligence&amp;quot;&lt;br /&gt; Description: &amp;quot;Artificial Intelligence&amp;quot;&lt;br /&gt; Technologies: List of Technologies: 2 items&lt;br /&gt; Technologies&lt;br /&gt; Id: 18&lt;br /&gt; Name: &amp;quot;Quantum Computing&amp;quot;&lt;br /&gt; Definition: null (Text)&lt;br /&gt; Description: null (Text)&lt;br /&gt; YearsToImpact: 10&lt;br /&gt; ScaleOfImpact: &amp;quot;High&amp;quot;&lt;br /&gt; AnalystReports: null (Text)&lt;br /&gt; AssetsAndAccelerators: null (Text)&lt;br /&gt; Standards: null (Text)&lt;br /&gt; Enablers: null (Text)&lt;br /&gt; UserCases: null (List of UseCases)&lt;br /&gt; RisksAndControls: null (List of RisksOrControls)&lt;br /&gt; CaseStudies: null (Text)&lt;br /&gt; GlobalCapabilities: null (List of Capabilities)&lt;br /&gt; Industry: null (Text)&lt;br /&gt; Vendor: null (Text)&lt;br /&gt; TeamSize: null (Number (Integer))&lt;br /&gt; OpportunityRating: 5&lt;br /&gt; RiskRating: 4&lt;br /&gt; Source: List of Sources: 1 item&lt;br /&gt; null (Sources)&lt;br /&gt; Images: List of Images: 2 items&lt;br /&gt; Images&lt;br /&gt; Id: 4&lt;br /&gt; Title: &amp;quot;QC_1&amp;quot;&lt;br /&gt; Label: &amp;quot;Flagships, Connected Enterprise, AI, Machine Learning, Cryptography, Encrytion, Pattern Matching&amp;quot;&lt;br /&gt; DocumentId: 17064&lt;br /&gt; ContentUrl: null (Text)&lt;br /&gt; Industry: null (Text)&lt;br /&gt; Source: null (Sources)&lt;br /&gt; Images&lt;br /&gt; Id: 5&lt;br /&gt; Title: &amp;quot;QC_2&amp;quot;&lt;br /&gt; Label: &amp;quot;Flagships, Connected Enterprise, AI, Machine Learning, Cryptography, Encrytion, Pattern Matching&amp;quot;&lt;br /&gt; DocumentId: 17065&lt;br /&gt; ContentUrl: null (Text)&lt;br /&gt; Industry: null (Text)&lt;br /&gt; Source: null (Sources)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi dropdown in a grid</title><link>https://community.appian.com/thread/56984?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 09:22:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c2f5b25e-256a-4893-ad73-46b25b56a113</guid><dc:creator>paragk998</dc:creator><description>could you share value of local!sources ?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi dropdown in a grid</title><link>https://community.appian.com/thread/56983?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 09:20:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:952ba944-374f-4736-8772-66a17f6fe631</guid><dc:creator>anushas0002</dc:creator><description>&lt;p&gt;unfortunately it didn&amp;#39;t work still. Please see the below screenshot may be it helps understand the issue better.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/13/pastedimage1529573019633v1.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1529573019633v1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi dropdown in a grid</title><link>https://community.appian.com/thread/56982?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 09:11:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:89412d14-1046-41aa-8b63-df39a00d834f</guid><dc:creator>anushas0002</dc:creator><description>Yes, index is added because the multi drop down is in an editable grid. Without that index it will throw another error saying: Only fields with scalar types can be indexed from an array.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi dropdown in a grid</title><link>https://community.appian.com/thread/56981?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 09:11:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4d5d3d0e-27c1-4091-8de7-ec0a38db1244</guid><dc:creator>paragk998</dc:creator><description>this error displays because&lt;br /&gt;
local!sources[fv!item].Technologies value is null&lt;br /&gt;
&lt;br /&gt;
you can use&lt;br /&gt;
index(local!sources[fv!item].Technologies,&amp;quot;Id&amp;quot;,&amp;quot;&amp;quot;) instead local!sources[fv!item].Technologies.Id &lt;br /&gt;
&lt;br /&gt;
try commenting dropdown field&lt;br /&gt;
and then display value of local!sources in any test field&lt;br /&gt;
you will be able to find issue&lt;br /&gt;
&lt;br /&gt;
if you can share value of  local!sources that will be helpful to understand the issue&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi dropdown in a grid</title><link>https://community.appian.com/thread/56978?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 09:01:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d0827fea-605f-4eac-ba35-5dd0f9c28461</guid><dc:creator>anushas0002</dc:creator><description>&lt;p&gt;Scenario:&lt;/p&gt;
&lt;p&gt;Display Preselected multiple values in multi drop down coming from Database. Allow user to change these values and save in DB which is when the below error is coming. It is also coming when I am trying to add new record in Editable Grid at same field.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Error Message:&lt;/p&gt;
&lt;p&gt;Could not display interface. Please check definition and inputs.&lt;br /&gt; Interface Definition: Expression evaluation error at function a!forEach [line 49]: Error in a!forEach() expression during iteration 4: Expression evaluation error at function a!multipleDropdownField [line 74]: Invalid index: Cannot index property &amp;#39;Id&amp;#39; of type Text into null value of type Technologies?list&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi dropdown in a grid</title><link>https://community.appian.com/thread/56975?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 07:49:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d3b5da15-7e68-48a4-88ab-d23d1ce7e99c</guid><dc:creator>Jasmin</dc:creator><description>We are not able to see your error message properly , could you please resend it  and one more thing, Is your choice labels and values are holding multiple data to show in multiple drop down , as per code it shows particular index data.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi dropdown in a grid</title><link>https://community.appian.com/thread/56974?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 07:27:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:92b9efd5-bbc4-4a0f-ab83-b99e574d659c</guid><dc:creator>paragk998</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;as per your code I think you are trying to save Technologies.Name associated with selected Technologies.Id.&lt;/p&gt;
&lt;p&gt;to do so&lt;/p&gt;
&lt;p&gt;don&amp;#39;t use second loop since you are saving at index,&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;a!save(local!sources[fv!index].Technologies, local!sources[fv!index].Technologies.Name)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;or you can use &lt;strong&gt;apply&lt;/strong&gt; function&lt;/p&gt;
&lt;p&gt;a!save(&lt;/p&gt;
&lt;p&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; &lt;strong&gt;local!sources.Technologies,&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;apply(&lt;/strong&gt;displayvalue(&lt;/p&gt;
&lt;p&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;_,&lt;/strong&gt;&lt;/p&gt;
&lt;p&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; local!sources[fv!item].Technologies.Id,&lt;/p&gt;
&lt;p&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; local!sources[fv!item].Technologies.Name,&lt;/p&gt;
&lt;p&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; null&lt;/p&gt;
&lt;p&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;strong&gt;save!value&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;)&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi dropdown in a grid</title><link>https://community.appian.com/thread/56965?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 06:34:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9ee98648-e034-4dc9-af1f-a550ccf843b0</guid><dc:creator>Aditya</dc:creator><description>The error message image you posted is not readable. However,in the code of your drop down field,&lt;br /&gt;
&lt;br /&gt;
value: { local!sources[fv!index].Technologies.Id }, // this line will throw an error when local!sources[fv!index].Technologies.Id is null or empty.&lt;br /&gt;
should be &lt;br /&gt;
value: local!sources[fv!index].Technologies.Id, // correct line.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi dropdown in a grid</title><link>https://community.appian.com/thread/56947?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 03:28:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:af9d4bd0-6aa8-4369-aca8-bcdc631199ef</guid><dc:creator>Venkatesh Suram</dc:creator><description>&lt;a href="/members/anushas0002"&gt;anushas0002&lt;/a&gt; : Can you please provide an Error Message ,  We are not able to see exact error text in attached image.&lt;br /&gt;
&lt;br /&gt;
Thanks!!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>