I am having requirement to show up only the respective record data from the grid in the Site. I have used a!urlForSite(sitePage: givensiteofMyapp) to navigate to the site but to retrieve the exact record from the grid how I need to fetch those details. Kindly provide any suggestion
Discussion posts and replies are publicly visible
We need more details about your scenario , As far as i understood , You got a grid in a site page and you are providing a link in every grid row ,When user clicks on it you are using urlsite and taking it to another page where you want to show only data of that particular row.
Save the identifier of that row ,Pass it as a url parameter and use it in querying and displaying.Or you achieve different thing??
Hello ashwinir5622
ashwinir5622 said: a!urlForSite(sitePage: givensiteofMyapp)
You need to use urlForRecord() and map the recordType and recordId and update the URL from tempo/records/item with your site address site-name/page/home/record/
Hi,
Thanks for the Reply.
I am having a URL only in Email. On click of the URL it navigate to the Site. On that we are having Read only grid. We are not using URL in each of the grid.
Requirement id On click of the URL it is navigating to the Site But i want to retrieve that particular record from the list of records in the grid using the primary key. Here on a!urlForSite(sitePage: givensiteofMyapp) i don't find any parameter in the function to pass the primary key value apart from the sitePage
Hi Konduru Chaitanya ,
urlForRecord() navigating to the Records in the Tempo but my requirement is to navigate to the site from their I need to retrieve the exact record data from the list of data in the read only grid
You will have to replace the url parts with your site info as I have mentioned above in my reply above.
substitute( urlForRecord( recordType:yourRecordTye, recordIds:yourIdentifiers ), "Tempo-URL"(current URL that you see when you click on urlForRecord), "SiteUrl"(Which you see when you open any summary) )
From 24.1 you can specify where to open(either Site or Tempo)
https://docs.appian.com/suite/help/24.1/fnc_scripting_urlforrecord.html
This is showing me the summary of the particular record Data. But I want to display the record data from the list of grid on click of the url
You want to display a record grid when clicked on the email link?
ashwinir5622 said:i don't find any parameter in the function to pass the primary key value apart from the sitePage
What do you mean by this ? Urlforsite() aren't you able to see "urlparameters" parameter
ashwinir5622 said:But I want to display the record data from the list of grid on click of the url
On click of link you need to open a site page and on site you want to show data in grid format?
This is showing as unavailable