a!richTextItem( text: "You must authorize your account before using this functionality." & char(10), style: "STRONG" ), a!richTextItem( text: "CONNECT", link: a!authorizationLink( connectedSystem: cons!ITS_CONS_INNERVUE_CONNECTED_SYSTEM, label: "Confirm connection" ) ), a!richTextItem( text: " " & "to your account to access your calculations first, then click" & " " ), a!richTextItem( text: upper("HERE"), link: a!safeLink(uri: "", openLinkIn: "SAME_TAB") ), a!richTextItem(text: " " & "to proceed.") }
Below this code I will be having a UI in read only mode and once the user got authorized the above error message will disappear and the UI will come in editable mode. sometimes it is working fine but sometimes it is not navigating to the editable UI and going back to the initial page.
Before using this safe link, I used dynamic link but as soon as the user get authorized the page is not refreshing so instead, I used a safe link with a dummy URL in order to get the page refreshed.
Can anyone suggest me an approach like once the user click on the above link, he has to get authorized, and the error display message should disappear, and the page has to refreshed without going back to the initial page, but it should refresh in the same page and the read only mode UI should come in editable mode.
Thanks in Advance.
Discussion posts and replies are publicly visible
There is an example in the documentation.
https://docs.appian.com/suite/help/22.4/authorization_link_component.html#examples
Yes, but the actual issue is in my requirement in one UI we will be having that error msg for authentication and below another UI in read only mode. as soon as the user click and gets authorized the error msg should disappear and the UI below should come in editable. But as soon as the user gets authorized the page is not refreshing and not allowing the user to edit the UI.
I understand. Why not using a dynamic link for "HERE" to repeat the integration call, to know that the authentication was successful?
Previously I used dynamic link but as soon as the user gets authorized the page is not refreshing so I went for another links.
How did you configure that dynamic link?
link: a!dynamicLink( saveInto: { if( local!status = 200, a!save(ri!readOnly, true()), a!save(ri!readOnly, false()) )})
trying a save a value and passing that value to the UI that needs to get into editable mode as soon as the user click "HERE"
And how do you change local!status?
we are not changing local!status, if the integration response is 200 we are just updating a rule input and passing that rule input value to the UI to make that UI in editable mode but as soon as the user clicks "HERE" the page is not refreshing, and the UI is not coming to editable mode unless and until we manually refresh the whole page.
This is what I try to explain. You need to repeat the integration call when clicking that "HERE" link. Then the status will update.
Ok Stefan, will try and thank you so much for your valuable time and patience.
Thank you so much.