Hi,
We use the following snippet a lot to refresh the page when we have performed some changes (for example, with a task menu dialog):
eventData.setNavigateTo("soprotocol:main[refresh=true]");
I have noticed that this does not refresh the archives of an entity (anymore), not sure if this is due to the new UI.
My assumptation is that this should also refresh the archives of the page (atleast the one currently active), but since you are explicity setting main in the soprotocol, I am not completely sure?
So is this intended behavior? (in that cas, how to refresh the currently active archive?) or a bug
Alles Antwoorden (5)
Hi David,
The idea that it used to refresh the archives and doesn't anymore seems like a corrective action from previous version.
SoProtocol is a navigation declaration that expects a where and what (soprotocol:{{WHERE}}[{{WHAT}}]?{{WHO}})
Another way to look at it is:
soprotocol:target-screen.upper-tab.lower-tab.mini-card?who_id=#
Only declaring main as a target means it should only target the main upper card view of the current page, none of the archive cards. See the targets page. FYI, you should idealy specify the target-screen too.
Hi Tony,
Thanks for the response, so if I want to refresh the current view of the user, how do I know which archive tab is currently open? I don't see an option for that in the ViewStateAgent.
View state in the event data or as method on the ViewState agent would be great, that way we can construct the soprotocol to refresh the correct parts.