<?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>a!gridImageColumn is giving issue</title><link>https://community.appian.com/discussions/f/user-interface/14996/a-gridimagecolumn-is-giving-issue</link><description>Hi , 
 
 I am facing some issue after adding one condition to below working code. After adding its returning document as null. 
 Kindly help me and correct me where i am missing in the below code snippet. 
 
 Kindly find below working and non working</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: a!gridImageColumn is giving issue</title><link>https://community.appian.com/thread/67042?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2019 08:44:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e583041c-768c-41ca-8a99-e9564d4e9cbf</guid><dc:creator>paulc919</dc:creator><description>&lt;p&gt;You may need to iterate through the susbsetFinal.data.id using another for each but hopefully this will give you some idea of how it could be achieved.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!gridImageColumn is giving issue</title><link>https://community.appian.com/thread/67041?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2019 08:42:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:16227a28-6a69-45a5-a4df-f87c09d1fa8e</guid><dc:creator>sauravk</dc:creator><description>&lt;p&gt;Thanks for your response . I will try that to accomadate in my code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!gridImageColumn is giving issue</title><link>https://community.appian.com/thread/67040?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2019 08:11:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3d7f8969-3c88-40ec-be95-113a3bdbcf9a</guid><dc:creator>paulc919</dc:creator><description>&lt;p&gt;I&amp;#39;ve experimented and have manged to create this logic - which works. See if you can adapt it to your use case.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;= load(
  local!testsubsetFinal: todatasubset(
    {
      {
        id: 1
      },
      {
        id: 3
      }
    }
  ),
  local!testsubset: todatasubset(
    {
      {
        id: 1,
        strDate: date(
          2019,
          05,
          30
        )
      },
      {
        id: 2,
        strDate: date(
          2019,
          06,
          10
        )
      }
    }
  ),
  a!gridField(
    label: &amp;quot;&amp;quot;,
    columns: {
      a!gridImageColumn(
        label: &amp;quot;&amp;quot;,
        size: &amp;quot;ICON&amp;quot;,
        data: a!forEach(
          items: local!testsubset.data,
          expression: a!documentImage(
            document: a!iconIndicator(
              if(todate(fv!item.strDate) &amp;gt; today(), &amp;quot;FACE_HAPPY&amp;quot;, &amp;quot;FACE_SAD&amp;quot;)
            ),
           caption: if(count(local!testsubsetFinal.data)&amp;gt;0, 
            if(fv!item.id=local!testsubsetFinal.data.id,&amp;quot;Hi to all &amp;quot;,&amp;quot;Hello to all &amp;quot;),&amp;quot;Date Implemented &amp;quot; &amp;amp; todate(fv!item.strDate)))
            
          )
        )
        
        
        
      
      
    },
    totalCount: length(local!testsubset.data),
    value: a!pagingInfo(
      startIndex: 1,
      batchSize: 10
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!gridImageColumn is giving issue</title><link>https://community.appian.com/thread/67039?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2019 07:56:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d31ed04e-6bc5-428d-b3c3-3576b5d9797d</guid><dc:creator>paulc919</dc:creator><description>&lt;p&gt;I&amp;#39;ve now managed to recreate the issue locally - will see if I can help with the code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!gridImageColumn is giving issue</title><link>https://community.appian.com/thread/67038?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2019 07:40:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ecfeee01-2e6b-4a4c-9194-72c50e94cdc8</guid><dc:creator>paulc919</dc:creator><description>&lt;p&gt;Can you post the full code snippet as I&amp;#39;ve just tried to create a dummy interface in my sandpit and I&amp;#39;m getting an error message around&amp;nbsp;&lt;/p&gt;
&lt;p&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!iconIndicator [line 16]: Invalid value for &amp;ldquo;icon&amp;rdquo;. Received: Hii. Supported values are: &lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!gridImageColumn is giving issue</title><link>https://community.appian.com/thread/67037?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2019 07:30:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d7996103-d3b0-45fd-8184-7a095311f4ec</guid><dc:creator>sauravk</dc:creator><description>&lt;p&gt;These are icons only. But by just changing if condition its not working. I tried to simply put &amp;quot;true&amp;quot; also in if condition not working.&lt;/p&gt;
&lt;p&gt;Saying it should be list in merge function. I had put {} then its started saying document object is null.&lt;/p&gt;
&lt;p&gt;I am not understanding why that is tightly bounded with this condition. I can&amp;#39;t change this code pattern as of now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!gridImageColumn is giving issue</title><link>https://community.appian.com/thread/67036?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2019 07:15:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:efde456a-9998-46f2-9146-a61e0bc08cef</guid><dc:creator>paulc919</dc:creator><description>&lt;p&gt;If you have access to use the a!forEach function try that instead. I find forEach much easier to use for looping. Something along the lines of a!forEach(items: local!testsubset.data, expression : a!documentImage( /* code to determine the document to display*/ )). You shouldn&amp;#39;t need to use the merge commands so it should simplify your code - I&amp;#39;d also suggest using proper documents to start with as I&amp;#39;m not sure the values you&amp;#39;re passing in are actual document icons ?&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>