<?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>Hello,  I&amp;#39;m creating a grid that has a grid image in it.</title><link>https://community.appian.com/discussions/f/rules/4307/hello-i-m-creating-a-grid-that-has-a-grid-image-in-it</link><description>Hello, I&amp;#39;m creating a grid that has a grid image in it. I want the grid image to display a document icon and represent a document, and when clicked the document will be downloaded. Currently my form breaks because if the document ID in the database is</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Hello,&lt;br /&gt;&lt;br /&gt;I'm creating a grid that has a grid image in it.&lt;br /&gt;&lt;br</title><link>https://community.appian.com/thread/15421?ContentTypeID=1</link><pubDate>Fri, 20 Feb 2015 02:33:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:900513ce-c8bc-4dce-8362-be2300d0684d</guid><dc:creator>issamd</dc:creator><description>That worked!  Thank you so much!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;&lt;br /&gt;I'm creating a grid that has a grid image in it.&lt;br /&gt;&lt;br</title><link>https://community.appian.com/thread/15420?ContentTypeID=1</link><pubDate>Fri, 20 Feb 2015 02:28:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bb009ba7-24df-4170-aa3a-82289accb771</guid><dc:creator>issamd</dc:creator><description>Hm, that&amp;#39;s a good idea, I&amp;#39;ll give that a try!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;&lt;br /&gt;I'm creating a grid that has a grid image in it.&lt;br /&gt;&lt;br</title><link>https://community.appian.com/thread/15419?ContentTypeID=1</link><pubDate>Fri, 20 Feb 2015 01:27:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6a7fd5a8-7981-4054-bed9-4f1d464caabc</guid><dc:creator>Tyler Criste</dc:creator><description>You need the link element of a!documentImage to be empty if a a docID is not found, right? In that case, you could use an expression rule to wrap a!documentDownloadLink and only return a link if docID is not nule. Your expression rule would look something like this:&lt;br /&gt;&lt;br /&gt;if(rule!APN_isBlank(ri!docID), {}, a!documentDownloadLink(document: ri!docID, label: {}))&lt;br /&gt;&lt;br /&gt;Then, you would apply over that rule instead of documentDownloadLink. So the last part of your expression (to generate the array of links) would be something like this:&lt;br /&gt;&lt;br /&gt;apply(&lt;br /&gt;                            rule!theRuleYouCreated,&lt;br /&gt;                              local!datasubset.data.FilingDocAppianDocID&lt;br /&gt;                            )&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;&lt;br /&gt;I'm creating a grid that has a grid image in it.&lt;br /&gt;&lt;br</title><link>https://community.appian.com/thread/15418?ContentTypeID=1</link><pubDate>Fri, 20 Feb 2015 01:03:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:374d3b51-b4c6-4e83-8042-acf7baca2a76</guid><dc:creator>issamd</dc:creator><description>...(&lt;br /&gt;                            rule!APN_replaceNull,&lt;br /&gt;                            property(&lt;br /&gt;                              local!datasubset.data,&lt;br /&gt;                              &amp;quot;DocumentName&amp;quot;,&lt;br /&gt;                              {}&lt;br /&gt;                            ),&lt;br /&gt;                            &amp;quot;There is no document for this filing&amp;quot;&lt;br /&gt;                          ),&lt;br /&gt;                          apply(&lt;br /&gt;                            a!documentDownloadLink(&lt;br /&gt;                              document: _,&lt;br /&gt;                              label: {}&lt;br /&gt;                            ),&lt;br /&gt;                            apply(&lt;br /&gt;                              rule!APN_replaceNull,&lt;br /&gt;                              local!datasubset.data.FilingDocAppianDocID,&lt;br /&gt;                             0&lt;br /&gt;                            )&lt;br /&gt;                          )&lt;br /&gt;                        )&lt;br /&gt;                      )&lt;br /&gt;                    )&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;&lt;br /&gt;I'm creating a grid that has a grid image in it.&lt;br /&gt;&lt;br</title><link>https://community.appian.com/thread/15417?ContentTypeID=1</link><pubDate>Fri, 20 Feb 2015 01:03:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ce6171ed-674b-4836-80b1-e205fea1bd90</guid><dc:creator>issamd</dc:creator><description>... _,&lt;br /&gt;                          link: _&lt;br /&gt;                        ),&lt;br /&gt;                        merge(&lt;br /&gt;                          repeat(&lt;br /&gt;                            if(&lt;br /&gt;                              local!lastPageRows &amp;gt; cons!CATS_GRID_V_FILING_SUMMARY_INFO_BATCH_SIZE,&lt;br /&gt;                              cons!CATS_GRID_V_FILING_SUMMARY_INFO_BATCH_SIZE,&lt;br /&gt;                              local!lastPageRows&lt;br /&gt;                            ),&lt;br /&gt;                            a!iconIndicator(&lt;br /&gt;                              &amp;quot;DOC_GENERIC&amp;quot;&lt;br /&gt;                            )&lt;br /&gt;                          ),&lt;br /&gt;                          apply(&lt;br /&gt;                            rule!APN_replaceNull,&lt;br /&gt;                            property(&lt;br /&gt;                              local!datasubset.data,&lt;br /&gt;                              &amp;quot;DocumentName&amp;quot;,&lt;br /&gt;                              {}&lt;br /&gt;                            ),&lt;br /&gt;                            &amp;quot;There is no document for this filing&amp;quot;&lt;br /&gt;                          ),&lt;br /&gt;                          apply...&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>