Skip to main content
January 27, 2024
Question

Reload the Site Upon button click

  • January 27, 2024
  • 14 replies
  • 2 views

Hi, 

Can you Give some options on reloading the site or refreshing the pages. I wanted to bring back the customer back to parent screen  upon submission and start a new request. there are many local variables to be refreshed hence wanted a know if there is a quick way to reload the site which can set the pages to default values. 

    14 replies

    mathieud0001
    Brainy
    January 29, 2024

    Would need more details or examples of what you are trying to do. But based on the very limited information, the simplest way to reload an interface after a submission is via a Record Action.

    jayaprakashr0001
    Participating Frequently
    January 29, 2024

    HI [mention:92ba06295fbc4d77b281c512999a858b:e9ed411860ed4f2ba0265705b8793d05] ,

    You can refresh the local variables data with refreshOnVarChange  by changing that particular local variable the data in the locals gets refreshed.

    To refresh the site based on button action you need to perform some action without action AFAIK we can't refresh the site.

    konduruc733182
    January 29, 2024

    Hello [mention:92ba06295fbc4d77b281c512999a858b:e9ed411860ed4f2ba0265705b8793d05] 

    My first question would be are you using any Record Actions or StartProcessLink?

    I wanted to bring back the customer back to parent screen  upon submission and start a new request

    Based on your question I would assume you are using startProcessLink. Try using a record action instead, would resolve your issue mostly.

    Also May be you can provide me more information so that If I am wrong, someone would come up with a precise answer.

    January 29, 2024

    I am using Start process on submit button, but it returns back to the submit screen and not to the parent screen. 

    konduruc733182
    January 29, 2024

    I think it would be really helpful if you share your Interface code and let all of us understand better. Because we all are still guessing here.

    harshitb6843
    January 29, 2024

    The direct answer to your question is to use urlForSite() function. Using that, you will be able to provide the user a link to navigate to a site page directly. 

    Check this blog of mine for a complete understanding - appianspace.com/.../

    January 29, 2024

    I tried this but it reloads the site in the next tab and not in the same tab in the browser

    mathieud0001
    Brainy
    January 29, 2024

    Just use a safe link with openLinkIn set to "SAME_TAB"

    https://docs.appian.com/suite/help/23.4/Web_Link_Component.html

    stefanhelzle0001
    Brainy
    January 29, 2024

    Depending on what "the pages" is, you have plenty of options. Regarding local variables, you could just use a list of a!save() to reset these to their initial state.

    January 29, 2024

    I tried both a!refreshvaraibles and a!save(), but the problem is I am not able to reset the child interface. One of the section is using child child interface.  Also,I am using is having a milestone , where the user needs to fill in the step by step. and upon submit, he has to return back to the step1, to start a new request.

    stefanhelzle0001
    Brainy
    January 30, 2024

    This conversation lacks context and is way too abstract.

    In Appian, the general way to implement user interaction is, to use record actions to start off. Once that process is completed, the UI will automatically return to the record list where the user can start a new action.

    If this does not fit your requirements, you can use a process, and its start form, as a page in a site. Once the process is completed, the UI will return to showing that start form.

    If this is not good enough, you can use a recordActionField or startProcessLink to start almost any process from any place. Once completed, it will return to that interface.

    At last, you could just build a dynamic interface that embeds the to-be started UI. Then you need to manage everything yourself.