Hello All,
We are using a!safelink to navigate the user to other system. The requirement is we want to store that which user clicked on the link and when in audit table, but
as in the safelink there are no saveinto parameter so not able to do that.
Can you please advise what to do that in this case and any work around we can do to achieve the requirement.
Thank you in advance
Discussion posts and replies are publicly visible
I think what you can do is Create a button give it a safe link then in button use Today(), User() function in saveinto so when the button is clicked you get the user details, date and time
Hi In Safe Link we are not having value and save Into parameters & if we are using safe Link it will be redirected to the another/same page so mostly the data which is stored(if any) also will be redirected/refreshed, So value will not be saved with safe link. To avoid this issue, I am suggesting 2 different models of coding(Attached Below).Hope it will be helpful
/*Model - 1*/ a!localVariables( local!number, a!columnsLayout( columns: { a!columnLayout(), a!columnLayout( contents: a!cardLayout( contents: a!richTextDisplayField( align: "CENTER", value: a!richTextItem( text: "Generate Safe Link", style: "STRONG", size: "MEDIUM_PLUS", color: "ACCENT" ) ), link: a!dynamicLink( value: right(rand(), 1), saveInto: local!number ), style: "ACCENT", shape: "ROUNDED", showShadow: true, showWhen: a!isNullOrEmpty(local!number) ), width: "NARROW" ), a!columnLayout( contents: a!cardLayout( contents: a!richTextDisplayField( align: "CENTER", value: a!richTextItem( text: "Safe Link", style: "STRONG", size: "MEDIUM_PLUS", color: "ACCENT" ) ), link: a!safeLink(uri: "https://www.gmail.com"), style: "ACCENT", shape: "ROUNDED", showShadow: true, showWhen: a!isNotNullOrEmpty(local!number) ), width: "NARROW" ) } ) )
/*Model - 2*/ a!localVariables( local!number, a!linkField( links: { a!dynamicLink( label: "Generate Safe Link", value: right(rand(), 1), saveInto: local!number, showWhen: a!isNullOrEmpty(local!number) ), a!safeLink( label: "Safe Link", uri: "https://www.gmail.com", showWhen: a!isNotNullOrEmpty(local!number) ) } ) )