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
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?
Sorry this didn't work. But I appreciate for your time and efforts. Thank you.
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" ) )
This is just not possible. The approach that you took (which I wouldn't recommend) is the only possible way to achieve this.
I don't understand why the status needs to be a page label and not just somewhere on the homepage of your application?
Got it, Thank you for the response and the recommendation.