Opening the record in new tab

Certified Lead Developer

Hi,

I have a requirement to open the record view on clicking on the link in the interface or task, It was working fine, I have used record link but the record is opening in the same tab. I have tried to use the record link with safe link but I am facing an error saying that could not cast from record link to safe uri

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Certified Lead Developer
    in reply to Vinay Kumar Rai
    Yeah, but I want to navigate to particular dashboard in the record.
  • There may be a work around for this, but I'm not sure how much practical it is.  Do see below code. This code can generate a URL that opens in a new window and navigate to the specified dashboard.

    with(
      local!recordURL:urlforrecord(
        cons!GROUP_RECORD,
        group(ri!group,"id")
      ),
      local!replacedLink:substitute(local!recordURL,"summary",ri!identifier),  /*ri!identifier :- the generated identifier of the dashboard. You can find this by navigating to the URL and refering to the end of the the URL  ex: view/_yZIZlQ -  so identifier is _yZIZlQ */
      a!safeLink(
        label:"Test URL",
        uri:local!replacedLink
      )
      
    )

    The generated identifier is same in each environment. This is my observation. You can get this confirmed via Appian support or if someone knows about this already.

     

    Regards

    Suresh