<?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>Safe link</title><link>https://community.appian.com/discussions/f/user-interface/24747/safe-link</link><description>I am trying to use safelink outside record link getting the error as expected. 
 
 error :Interface Definition: Expression evaluation error at function a!gridField: A grid component [label=“null”] has an invalid value for “columns”. A grid column [label</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Safe link</title><link>https://community.appian.com/thread/95942?ContentTypeID=1</link><pubDate>Fri, 03 Jun 2022 15:16:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b14d8c15-4a00-4aa8-89ad-254794a5733f</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;You should be able to assemble an Expression Rule containing essentially the same code Peter posted above, takes in the record type and the identifier, and returns the relevant site-specific URL for the same record.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Safe link</title><link>https://community.appian.com/thread/95926?ContentTypeID=1</link><pubDate>Fri, 03 Jun 2022 09:00:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ac919e36-c664-4559-aaf9-e2cc1b5e9601</guid><dc:creator>sid</dc:creator><description>&lt;p&gt;yes thank you. how to create a component which generates record link by parameters ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Safe link</title><link>https://community.appian.com/thread/95751?ContentTypeID=1</link><pubDate>Tue, 31 May 2022 16:08:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2b4e3587-69bf-42b4-87bc-71e3af20dcf7</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;The function urlforrecord always returns the URL for tempo, so if you want it to open in a site instead you may need to replace the URL accordingly. Usually you&amp;#39;d have to do something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;concat(
  local!siteUrl,
  mid(
    urlforrecord(
      cons!YOUR_RECORD_TYPE,
      fv!identifier
    ),
    find(
      &amp;quot;/records/item&amp;quot;,
      urlforrecord(
        cons!YOUR_RECORD_TYPE,
        fv!identifier
      ),
    ) + 13,
    /* Adding 13 because that&amp;#39;s the number */
    /* of characters in /records/item */
    10000
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You just need to make sure that the URL for the site is valid - usually this means you need to include the site name, page name, and &amp;quot;record&amp;quot; before the URL above. Something like this:&lt;/p&gt;
&lt;p&gt;https://&amp;lt;your_appian_site&amp;gt;.appiancloud.com/suite/sites/&amp;lt;site_name&amp;gt;/page/&amp;lt;page_name&amp;gt;/record/&amp;lt;record_link_url&amp;gt;/view/summary&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Safe link</title><link>https://community.appian.com/thread/95718?ContentTypeID=1</link><pubDate>Tue, 31 May 2022 06:39:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3d0a5a57-0830-4e0b-8350-9c185a53ae28</guid><dc:creator>sid</dc:creator><description>&lt;p&gt;yes thank you ,all actions are opening in tempo mode instead of in sites.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Safe link</title><link>https://community.appian.com/thread/95717?ContentTypeID=1</link><pubDate>Tue, 31 May 2022 06:33:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:739403c0-7a96-4caf-8719-34193f17d6f2</guid><dc:creator>Naresh</dc:creator><description>&lt;p&gt;I forgot to update at line no 20. You can try this code&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="xml"&gt;a!gridColumn(
        label: cons!CR_APP_LAB_MODULE_OVERVIEW[2],
        value: a!localVariables(
          local!recordUrl: urlforrecord(
            recordType: cons!CR_RECORD_TYPE_CUSTOMER,
            recordIds: ri!crModuelCheckList_cdt.cif_int /*Not sure why you are using this insted of fv!identifier */
            /*fv!identifier*/
          ),
          local!dashboardViewStub: if(
            fv!row.workflowId_int = cons!CR_WORKFLOW_IDS[1],
            cons!CR_MODULES_DASHBOARD_URL_STUBE[1],
            if(
              fv!row.workflowId_int = cons!CR_WORKFLOW_IDS[2],
              cons!CR_MODULES_DASHBOARD_URL_STUBE[2],
              cons!CR_MODULES_DASHBOARD_URL_STUBE[3]
              /*Note: Add all your remaining if conditions here if any*/
            )
          ),
          local!recordUrlWithSpecificView: substitute(
            local!recordUrl,
            &amp;quot;summary&amp;quot;,
            local!dashboardViewStub
          ),
          a!richTextDisplayField(
            value: {
              a!richTextItem(
                text: fv!row.workflowDesc_txt,
                link: a!safeLink(
                  label: fv!row.workflowDesc_txt,
                  uri: local!recordUrlWithSpecificView
                )
              )
            }
          )
        )
      )&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Safe link</title><link>https://community.appian.com/thread/95715?ContentTypeID=1</link><pubDate>Tue, 31 May 2022 05:29:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ab461a0e-70a8-4ca3-8db1-07277eece983</guid><dc:creator>sid</dc:creator><description>&lt;p&gt;okay thanks for your help and Could you please tell the line 20 representing here (i.e. local!url) is that local!recordUrl or need to define local variable&amp;nbsp; as a seperate var? Bcoz I tried with the code it is throwing error for me&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Safe link</title><link>https://community.appian.com/thread/95710?ContentTypeID=1</link><pubDate>Mon, 30 May 2022 17:51:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a9585f3b-c8fb-4f2f-bd03-775ea80c2ad1</guid><dc:creator>Naresh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t understand your use case fully, but this is what I am thinking. You can try this solution. It will work for your situation based on the description your provided.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="xml"&gt;a!gridColumn(
        label: cons!CR_APP_LAB_MODULE_OVERVIEW[2],
        value: a!localVariables(
          local!recordUrl: urlforrecord(
            recordType: cons!CR_RECORD_TYPE_CUSTOMER,
            recordIds: ri!crModuelCheckList_cdt.cif_int /*Not sure why you are using this insted of fv!identifier */
            /*fv!identifier*/
          ),
          local!dashboardViewStub: if(
            fv!row.workflowId_int = cons!CR_WORKFLOW_IDS[1],
            cons!CR_MODULES_DASHBOARD_URL_STUBE[1],
            if(
              fv!row.workflowId_int = cons!CR_WORKFLOW_IDS[2],
              cons!CR_MODULES_DASHBOARD_URL_STUBE[2],
              cons!CR_MODULES_DASHBOARD_URL_STUBE[3]
              /*Note: Add all your remaining if conditions here if any*/
            )
          ),
          local!recordUrlWithSpecificView: substitute(
            local!url,
            &amp;quot;summary&amp;quot;,
            local!dashboardViewStub
          ),
          a!richTextDisplayField(
            value: {
              a!richTextItem(
                text: fv!row.workflowDesc_txt,
                link: a!safeLink(
                  label: fv!row.workflowDesc_txt,
                  uri: local!recordUrlWithSpecificView
                )
              )
            }
          )
        )
      )&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Safe link</title><link>https://community.appian.com/thread/95709?ContentTypeID=1</link><pubDate>Mon, 30 May 2022 17:26:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7b4102af-6c3d-4d10-8623-eb5c2f8cb04a</guid><dc:creator>Naresh</dc:creator><description>[quote userid="75078" url="~/discussions/f/user-interface/24747/safe-link/95700#95700"]The parameter openlinkin cannot be use in my case bcoz the version(2.2)[/quote]
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What you mean by cannot be use 2.2. Which Appian version you are using? this openlinkin option available from 21.1 version?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Safe link</title><link>https://community.appian.com/thread/95700?ContentTypeID=1</link><pubDate>Mon, 30 May 2022 13:19:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fff1f54d-04a5-49da-afb9-4eb17954be3c</guid><dc:creator>sid</dc:creator><description>&lt;p&gt;okay sure&amp;nbsp;&lt;a href="/discussions/f/user-interface/24713/how-to-add-link-in-readonly-grid"&gt;Appian Community&lt;/a&gt;&amp;nbsp;with the recordlink the functionality is working fine(The parameter openlinkin cannot be use in my case bcoz the version(2.2)) but the modules has to be open in new tab so I am trying to use same code with safelink. I hope my question is clear. Please suggest me if any possible way for this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Safe link</title><link>https://community.appian.com/thread/95699?ContentTypeID=1</link><pubDate>Mon, 30 May 2022 12:50:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b49e7b83-149d-4a2f-b0ab-9919b492e567</guid><dc:creator>GopalK</dc:creator><description>&lt;p&gt;Hi, Could you please tell why are you using safe link ? what is the requirement?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>