Hi.
We have been using SPA for our current project and its been great so far.
We had a few issues with JS, which have been reported and we’re waiting for a fix.
As the topic name suggests, this is another issue we are facing now.
On our index page, we have label which shows user’s progress across the content pages.
We have used Session to store and display the progress status, but it does not update real-time.
Session manager has been created on every content page and the index too, with same variables. But they do not get updated dynamically in the main page when changed from content page.
Similarly we also have to submit forms inside content page using a button that is on the main page. (This one sounds avoidable, but our process requires this.)
Another use case for us is that we would like to store values input by user on content pages and re-use them across all content pages in the main page. Similar to progress value.
I hope I have explained our requirement clearly. If not, please ask to clarify.
Have tested it out further. Sharing data between Main & Content page is still not working.
I have set two labels to show data from session using dmx-bind.
But if I update the value on main page, content page label does not get updated, and reverse is also similar.
Any thoughts on if this is even possible or should be possible @George / @patrick ?
Session values do keep in sync between content pages, just not with the main page.
Reading this got me thinking that creating session for every page is probably overlap and duplication.
So I removed session manager from all content pages, and just hard-coded session variables wherever required.. because as you pointed, they are available, just not visible in the pickers.
And now, session values are being shared correctly. And the work flow is restored.
@George I would bother you for one more thing - similar to session manager, what other components need not be added to content pages if they are common across the SPA?
Browser, Local Storage Manager... etc?
I am not sure i understand your question. None of the components should be added there, the views “read” them from the main page.
Just think about the view as parts of the main page. Do you add components on every part of your page, or do you only add them once per page?
Wow
There is no such a list available. Please read my reply:
You just put the design components there in the views (parts of the page) - the rest like managing cookies, sessions etc. must be included once and not in every div(section, part) of the page.
Hi @Teodor, I have been moving the dmx-serverconnect queries to the top of their relevant Content Pages. I have been doing that because in my mind they will only execute when that particular view is called. Should I not be doing that?