I have a page where the label I am dynamically passing from database.
I have a dropdown menu with 3 values and I want to make sure when I select any of the values and click on submit, my selected value should be updated on the Page label. The problem I am currently facing is for every refresh I am able to see the update value and can't we make it possible without any page refresh??I already used refreshVariable but didn't work. Please let me know your inputs.
Thanks.
Discussion posts and replies are publicly visible
Do you mean the label of a page in a site? Can you share some screenshots and code snippets of what you already tried so far?
Yes I do. For every change in the dropdown I can see the corresponding values are being reflected in the backend but what's happening is, in the label of a page in a site, the data is not being refreshed or fetched every time my "userStatus" value from the backend gets modified. Iterating my requirement: when "userStatus" gets modified then I need to change the label status of a page in a site using the below code.
I think that the expression to define the label of a page in a site does not support any kind of refresh behaviour.
Peter Lewis, do you know more about this?
So according to my understanding, the real-time behaviour doesn't exists in Appian so far. Please correct me if I am wrong.
What do you mean with "the real-time behaviour"?
Asynchronous nature of the page label. Here in my case, if I change a dropdown value, it should get reflected immediately in the label of a page in a site, instead I can see the choicevalue that I selected after I reload the browser tab or toggle between other pages in site.
Very much doubt this is supported anywhere outside of an interface (page names, record filters, record actions etc.)
This is how the interface evaluation lifecycle works in Appian:
https://docs.appian.com/suite/help/23.3/SAIL_Performance.html
And this is restricted to Interface design objects. Expression code used elsewhere has a different means of refresh behaviour.
BTW, what kind of user interaction do you want to implement here?
When I select any of the choice label, my write to data store entity service is making the changes in the database immediately. Isn't it possible to make sure upon every change of the userStatus corresponding to logged in user, label of the page gets modified?
No.
I still wonder what user interaction you are aiming for.
I'm not aware of any way of updating the label of a site page based on an interaction from within the page without a hard refresh. Like Stefan said though, can you talk more about what you're trying to achieve? What are the labels? Why do they need to be refreshed? In scenarios like this there are often other approaches that can achieve a similar outcome even if they aren't exactly what you specified.
Peter Lewis
I have an application where users are allowed to update their status such as Available, Busy, Offline. Once the user updates their status within the interface, it should be seen on the current Page Label's on the Appian Site. The page of the site contains the interface which allows users to update their status. When ever the user clicks on any of the status, lets say Available, and submit it, the Page label should be changed to Available with out any hard refresh of the page, similarly same goes with the other status options provided. The code is working fine for every refresh or hard refresh of the page or the browser tab but I need to somehow achieve it without manually refreshing it. Hope my requirement is clear now.It worked using this approach but the thing is entire tab is reloading, well it is expected because of the nature of links and redirections. But still is there any way to develop it without redirecting to the same page.
a!linkField( links: a!safeLink( label: "SUBMIT", uri: "My Page URL goes here", openLinkIn: "SAME_TAB" ) )