How to update Appian Page Label value dynamically for every user interaction with the page components?

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

Parents Reply Children
  • 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.

  • 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"
        )
    )


    Any kind of approach is accepted and appreciated.

  • +1
    Certified Lead Developer
    in reply to Neelesh Janga

    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.