<?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>link showwhen in grid</title><link>https://community.appian.com/discussions/f/general/29933/link-showwhen-in-grid</link><description>i have added a link in a selectable grid, when we select that row then the link should be enabled how to configure that</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: link showwhen in grid</title><link>https://community.appian.com/thread/118863?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2023 13:47:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7dd67e77-027f-4251-9ec7-7d70e6fedf91</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;This is not how the index() function works.&amp;nbsp; This is a very powerful and useful function but, i&amp;#39;m afraid, it doesn&amp;#39;t do what you seemed to want here.&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1694180767575v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The good news is the real solution here is probably simpler - you can probably just replace that code with, &amp;quot;&lt;em&gt;&lt;strong&gt;ri!selected_txt = fv!item&lt;/strong&gt;&lt;/em&gt;&amp;quot; or something similar to that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: link showwhen in grid</title><link>https://community.appian.com/thread/118852?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2023 12:27:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f8737b0d-bee9-4110-accc-026248859249</guid><dc:creator>KM</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;a!gridLayout(
              headerCells: {
                a!gridLayoutHeaderCell(label: cons!CR_SF_ALL_LABELS[10]),
                a!gridLayoutHeaderCell(label: &amp;quot;&amp;quot;)
              },
              columnConfigs: {
                a!gridLayoutColumnConfig(width: &amp;quot;DISTRIBUTE&amp;quot;, weight: 2),
                a!gridLayoutColumnConfig(width: &amp;quot;DISTRIBUTE&amp;quot;, weight: 2)
              },
              selectionValue: ri!selected_txt,
              selectionSaveInto: ri!selected_txt,
              selectable: true(),
              rows: a!forEach(
                items: local!limitsList,
                expression: a!gridRowLayout(
                  id: fv!item,
                  contents: {
                    a!textField(value: fv!item, readOnly: true()),
                    if(
                      rule!APN_isEmpty(ri!selected_txt),
                      a!textField(readOnly: true()),
                      a!richTextDisplayField(
                        value: a!richTextItem(
                          showWhen: index(ri!selected_txt, fv!item, {}),
                          text: if(
                            local!showLimitData,
                            &amp;quot;Hide Data&amp;quot;,
                            &amp;quot;Show Data&amp;quot;
                          ),
                          link: a!dynamicLink(
                            value: not(local!showLimitData),
                            saveInto: if(
                              local!showLimitData = true(),
                              a!save(local!showLimitData, false()),
                              a!save(local!showLimitData, true())
                            )
                          ),
                          color: if(
                            local!showLimitData,
                            &amp;quot;#ff0000&amp;quot;,
                            &amp;quot;#00ff00&amp;quot;
                          )
                        )
                      )
                    )
                  }
                )
              )
            )&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: link showwhen in grid</title><link>https://community.appian.com/thread/118846?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2023 11:35:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5e21d5e4-d01a-49d5-a677-0a803a101694</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Then you condition is wrong. Wanna share some code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: link showwhen in grid</title><link>https://community.appian.com/thread/118841?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2023 10:16:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5817eaf9-5121-41db-a317-f2171461d6fb</guid><dc:creator>KM</dc:creator><description>&lt;p&gt;at same time when i select other row both links are disappeared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: link showwhen in grid</title><link>https://community.appian.com/thread/118836?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2023 09:26:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:670d8142-80c3-4718-85ab-c2064a4acb16</guid><dc:creator>aryan</dc:creator><description>&lt;p&gt;To achieve this, save the selection in a local variable, and then in the showWhen parameter of the link, check if the row is selected or not. You can check this by using&amp;nbsp;the&amp;nbsp;contains() function.&lt;br /&gt;Just give it a try ;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: link showwhen in grid</title><link>https://community.appian.com/thread/118834?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2023 09:19:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:00415ce9-9264-4f8b-aceb-5d1f2ea15973</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;You probably have a local variable you use to store the selected rows. You just have to check whether the list of selected rows contains that row.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>