Site pages bar does not refresh until web reload.

Certified Associate Developer

Hi! Thank you for your help!

Context:

I have 1 site in appian, it has 3 pages.

1 Landing page : Interface

2 Page 1 : Process Model With Sail Form

3 Page 2 : Process Model With Sail Form

Problem:

I need to hide from the pages bar, the pages 1 and 2 when the user is in the landing, and the other way, hide landing page when the user is in page 1 or 2.
I´ve managed to implement this using a field in a database called : is_home.
And checking the status with executestoredprocedure() from the database.

So, the thing is, the bar does not refresh until i reload the page, pressing F5, or pressing in the Home Page icon again.
This leads to an error everytime i press the button in the interface that should not be visible.

Once in a while, the site refreshes and the bar does work properly.

Same occurs with Dynamic Site>Pages Names.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    I think this is the expected behaviour. The Site itself does not refresh when a page is doing something.

    BTW, why do you execute a stored procedure to find a value in the DB? Do queryRecordType or queryEntity not work?

  • 0
    Certified Associate Developer
    in reply to Stefan Helzle

    Is_home has 2 values, (true or false), everytime users load "Landing page", a store procedure sets is_home true. There are 2 buttons in "landing page", when a user clicks on them i call a!startProcess to update is_home to false.

    In the Site configurations visibility , pages check, rule!getProcessStatus, this proces queries the db and retrive is_home.

    Then pages 1 and 2 have buttons doing the oposite.

    The thing is, site does not refresh, at least not always. And the Site Pages Navigation Bar does not update.

    Thank you for answering me!! :) i'm looking for another solution. :P

Reply
  • 0
    Certified Associate Developer
    in reply to Stefan Helzle

    Is_home has 2 values, (true or false), everytime users load "Landing page", a store procedure sets is_home true. There are 2 buttons in "landing page", when a user clicks on them i call a!startProcess to update is_home to false.

    In the Site configurations visibility , pages check, rule!getProcessStatus, this proces queries the db and retrive is_home.

    Then pages 1 and 2 have buttons doing the oposite.

    The thing is, site does not refresh, at least not always. And the Site Pages Navigation Bar does not update.

    Thank you for answering me!! :) i'm looking for another solution. :P

Children