<?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>gridField - fv!row vs fv!identifier</title><link>https://community.appian.com/discussions/f/new-to-appian/28023/gridfield---fv-row-vs-fv-identifier</link><description>Hello Folks: 
 I am trying to figure out why the &amp;quot;value: .......&amp;quot; works when I use fv!identifier but fails when I use fv!row (this gives me all 14 values as the output) whereas I am looking for just the current grid-row&amp;#39;s value (one value). The gridfied</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: gridField - fv!row vs fv!identifier</title><link>https://community.appian.com/thread/109119?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 15:26:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e7f942c5-f7c3-4af7-a135-2928ba19de1f</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="82813" url="~/discussions/f/new-to-appian/28023/gridfield---fv-row-vs-fv-identifier/109103#109103"]I usually use a local variable and look at the local variable panel or simply add a &amp;#39;text field&amp;#39;[/quote]
&lt;p&gt;Those work well too - just not necessarily for grid data, which the example I provided handles reasonably well.&amp;nbsp; In the old days there was no &amp;quot;local variables preview pane&amp;quot;, so we *always* had to add a &amp;quot;debug&amp;quot; paragraph field in random spots on our forms to verify the values of local variables in question.&amp;nbsp; These days it&amp;#39;s much easier, luckily!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gridField - fv!row vs fv!identifier</title><link>https://community.appian.com/thread/109112?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 14:56:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9aa3952b-6c0d-4e4b-8c17-7928e2a3d0de</guid><dc:creator>Komal Jain</dc:creator><description>&lt;p&gt;Great. I assumed&amp;nbsp;the data is improper dictionary structure and so you are facing issue while using .number.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gridField - fv!row vs fv!identifier</title><link>https://community.appian.com/thread/109110?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 14:45:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8a9850fe-f0fe-4c33-9f6e-aadc7dec0a5e</guid><dc:creator>MaNa</dc:creator><description>&lt;p&gt;Komal&lt;br /&gt;The issue was my incorrect usage of syntax to access the data field. &amp;nbsp;I was originally using it as shown in the image below.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/62/pastedimage1678372842362v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As Mike Schmitt pointed out (and as your example shows), I was using fv!row as an index to the data &amp;quot;.number[fv!row]&amp;quot; which is&amp;nbsp;incorrect. &amp;nbsp;I should have used&amp;nbsp;&amp;nbsp;&amp;quot;fv!row.number&amp;quot;.&lt;/p&gt;
&lt;p&gt;I am not sure what you mean by &amp;#39;data structure is incorrect&amp;#39;. &amp;nbsp;The local variable I am using is as shown&amp;nbsp;in the earlier image I had sent. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;
&lt;p&gt;Ma&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gridField - fv!row vs fv!identifier</title><link>https://community.appian.com/thread/109105?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 14:25:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4b9e7080-ec22-4a0c-bcd7-e1f3b80e838b</guid><dc:creator>Komal Jain</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried this&amp;nbsp;&lt;/p&gt;
&lt;p&gt;a!localVariables(&lt;br /&gt; local!data:{{number:301,name:&amp;quot;Calcium&amp;quot;},&lt;br /&gt; {number:303,name:&amp;quot;Calcium&amp;quot;}},&lt;br /&gt; a!gridField(&lt;br /&gt; data: local!data,&lt;br /&gt; columns: a!gridColumn(&lt;br /&gt; label: &amp;quot;Number&amp;quot;,&lt;br /&gt; value: fv!row.number&lt;br /&gt; )&lt;br /&gt; &lt;br /&gt; )&lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;and it worked&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you using&amp;nbsp;&lt;span&gt;a!localVariables if yes could you please share the data of you local variable from the local variable data section&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/62/pastedimage1678371974902v1.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I strongly feel your data structure is incorrect&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gridField - fv!row vs fv!identifier</title><link>https://community.appian.com/thread/109103?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 14:14:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8814f01c-699e-4d99-b43c-abe2b0b24631</guid><dc:creator>MaNa</dc:creator><description>&lt;p&gt;Mike,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for that hint. &amp;nbsp;I usually use a local variable and look at the local variable panel or simply add a &amp;#39;text field&amp;#39;. &amp;nbsp;Is there any better&amp;nbsp;way to do debugging?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Ma&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gridField - fv!row vs fv!identifier</title><link>https://community.appian.com/thread/109102?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 14:09:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:abf6484a-4094-4462-8497-f7b8b21c33db</guid><dc:creator>MaNa</dc:creator><description>&lt;p&gt;Mike,&lt;/p&gt;
&lt;p&gt;Quite possible I am confusing the two - but I am also wondering why I went down the variable.fieldname[fv!...] path. &amp;nbsp;I have been using various interface recipes as the starting point for my learning process, so could be from one of those example - which I misunderstood.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But I will keep my eyes open if I come across it.&lt;/p&gt;
&lt;p&gt;Ma&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gridField - fv!row vs fv!identifier</title><link>https://community.appian.com/thread/109099?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 13:42:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8f4e1449-5425-4fef-aeda-237964d4c98e</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="82813" url="~/discussions/f/new-to-appian/28023/gridfield---fv-row-vs-fv-identifier/109096#109096"]examples where they use &amp;quot;.fieldname[fv!row]&amp;quot;[/quote]
&lt;p&gt;Can you link me to where examples are written in this way?&amp;nbsp; I&amp;#39;ve never seen anything like that.&amp;nbsp; Off the top of my head I wonder if you might be getting this confused with how rows are written when using RecordType data, which is more like &amp;quot;value: fv!row[&lt;em&gt;recordtype!RecordName.Fields.property&lt;/em&gt;]&amp;quot;, maybe?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gridField - fv!row vs fv!identifier</title><link>https://community.appian.com/thread/109098?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 13:40:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5acf88ba-83b1-4965-ae7c-92f7426a8e82</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Just follow the error message to solve this.&lt;/p&gt;
&lt;p&gt;Check out this example from the documentation of how to use fv!row.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/23.1/read-only-grid-configuration.html#manual-paging"&gt;docs.appian.com/.../read-only-grid-configuration.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gridField - fv!row vs fv!identifier</title><link>https://community.appian.com/thread/109097?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 13:39:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e245590d-6d8d-460b-8ff3-02d344f02e02</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;As an additional hint: sometimes i&amp;#39;ll add a &lt;em&gt;debug&lt;/em&gt; column where i just set the value to &lt;em&gt;&lt;strong&gt;fv!row&lt;/strong&gt;&lt;/em&gt; by itself - it displays the value of the entire row and helps me remember what properties i have available to add columns for (and to verify that the values look correct).&amp;nbsp; You just need to comment it out, or set its &lt;em&gt;showWhen&lt;/em&gt; parameter to &lt;em&gt;false&lt;/em&gt; when not in use.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gridField - fv!row vs fv!identifier</title><link>https://community.appian.com/thread/109096?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 13:36:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:460cc20e-da46-4723-ab2c-bb31a8d1da28</guid><dc:creator>MaNa</dc:creator><description>&lt;p&gt;Mike,&lt;/p&gt;
&lt;p&gt;That makes so much more sense. &amp;nbsp;I always wondered why I had to provide the variable name if the data-attribute already defined the data-source. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;This worked.&lt;/p&gt;
&lt;p&gt;Guess I have to review examples where they use &amp;quot;.fieldname[fv!row]&amp;quot; &amp;nbsp;to access individual values to determine what is the difference by example and their example.&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gridField - fv!row vs fv!identifier</title><link>https://community.appian.com/thread/109095?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 13:30:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ad6e40b6-7c49-434e-ac44-4df81472d462</guid><dc:creator>MaNa</dc:creator><description>&lt;p&gt;HI Komalj&lt;/p&gt;
&lt;p&gt;If I understand your request correctly, this is the information you information you are seeking.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/pastedimage1678368680685v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gridField - fv!row vs fv!identifier</title><link>https://community.appian.com/thread/109094?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 13:27:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f01cfd23-4569-4e1c-867c-b34045616270</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;The main issue is you&amp;#39;re not using fv!row correctly at all --&lt;span style="font-size:inherit;"&gt; &lt;/span&gt;&lt;span style="color:#ff0000;font-size:inherit;text-decoration:underline;"&gt;fv!row &lt;em&gt;&lt;strong&gt;is the row value&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;, it&amp;#39;s not something that you&amp;#39;d use to access a positional index of the original array, which is what you&amp;#39;re trying to do here for some reason.&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/62/pastedimage1678368883503v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The proper syntax is:&lt;br /&gt;&lt;pre class="ui-code" data-mode="java"&gt;value: fv!row.number  /* or whatever property of the original dictionary you want to access here */&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gridField - fv!row vs fv!identifier</title><link>https://community.appian.com/thread/109093?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 13:20:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9367773c-3b0d-4ab2-bad1-dc8c96349215</guid><dc:creator>Komal Jain</dc:creator><description>&lt;p&gt;Could you please share the data store in local variable currentProductNutrients&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gridField - fv!row vs fv!identifier</title><link>https://community.appian.com/thread/109092?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 13:20:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7a565a08-a205-4f08-9719-732ab55bed76</guid><dc:creator>MaNa</dc:creator><description>&lt;p&gt;Hi Harshit:&lt;/p&gt;
&lt;p&gt;Thank you for your response. &amp;nbsp;I tried various combinations. &amp;nbsp;I am trying to create a grid layout with the following columns:&lt;/p&gt;
&lt;p&gt;Number | Name | Amount | Unit&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is my data: output I am starting with:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/pastedimage1678367872734v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I get errors when I tried to move the &amp;#39;.number&amp;#39; to the data-attribute.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/pastedimage1678367925347v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I also get errors when I tried a couple other variations of fv!row and .number.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/pastedimage1678368000225v3.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gridField - fv!row vs fv!identifier</title><link>https://community.appian.com/thread/109090?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 13:15:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4c5780ac-431a-4522-ab59-320321e52ed1</guid><dc:creator>MaNa</dc:creator><description>&lt;p&gt;Hi Stefan:&lt;/p&gt;
&lt;p&gt;Thank you for your response. &amp;nbsp;I tried datasubset variations too. &amp;nbsp;Those led to errors too.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/pastedimage1678367696404v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gridField - fv!row vs fv!identifier</title><link>https://community.appian.com/thread/109067?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 07:29:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7d23b0da-72d3-46cf-b929-5d774f461351</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;The grid field expects a datasubset as the datasource. It iterates on the items and make each individual item available as fv!row and the corresponding identifier (datasubset.identifiers) as fv!identifier.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gridField - fv!row vs fv!identifier</title><link>https://community.appian.com/thread/109061?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 06:40:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:338d386a-9caf-4142-86df-4a5357682b69</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;The problem is with the &amp;quot;.number&amp;quot; in value. If you add the same on the data parameter, then fv!row should work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>