I have a content page that I am using on 2 different layout pages. The layout pages have each their own server actions which affect the data display in the content page.
Is there a way or dynamic action to only reload the content page and not use the browser action to reload the whole layout page?
I can't understand your concept and what determines when the content has to be reloaded but an "instant" thought is to use a session variable and a pageflow..
session variable rldcnt
pageflow with autorun enabled, inside it include the actions that you want to be reloaded inside an if condition
if session variable rldcnt=="yes" then run the actions and at the end set again the session variable to rldcnt=="no"
now in your layout page, if you want the content page to be reloaded you set the rldcnt=="yes"
Thanks for response. And also @Teodor. My content pages have a lot of server actions and page flows and I did not want to have to reload them all every time, but if that is the only way, I will probably have to.
The only way my layout page will be aware which one of the content pages is current and needs reloading would be conditions using the path of the url.
That means I would have to have 5 sets of reloads based on the browser component's path value and each of these would have 5 - 10 server actions/page flows to reload.
Have you considered adding all / most of the server connects on the layout page instead of the content pages? This way server connects will run at the initial page load.
If I understand correctly, you have in both of your layout pages, links that direct you to this content page...
What I'm thinking is, can you define if the content page's serverconnects (and pageflows) will be reloaded, by adding that option on the layout's click event::
a) adding on the link a query.url (contentPage?rldcnt="yes")
or
b) setting a session variable rldcnt="yes"
Then on your content page try to group all the serverconnects and pageflows inside a main pageFlow and there an IF condition that ckeck the a) or b), will reload them or not...