Looking for a method to be able to the previous or up to 10 previous contents in a page in a specific area. So users are able to navigate back as they please.
Seems there is no native support for this. Has anyone got any ideas how to go about this?
you’re using mappView, right?
Unfortunately I’ve no experience with mappView, and so I’m not sure if I’m completely ond the wrong track:
I saw a widget named “ContentControl” which has an action LoadContent and also an event -ContentLoaded.
So maybe you can use that widget to load dynamically the content you want to have and store the last loaded contents (by using the event ContentLoaded) also in parallel inside a variable? If doing so maybe you can generate a “list of last contents visited” and going back trough this list (by using LoadContent action on that widget)?
Again: maybe I’m wrong thinking in that direction, but at least it sounds a bit like your wanted usecase.
Nevertheless, I know that the’re some mappView cracks here in the community knowing much better then me, and I’m curious about what they will suggest
I accomplished a single page back button a while back on an older version of mappview so the process I’ll describe may have streamlined a bit.
MappView tracks your current pageId through a session var called clientInfo.currentPageId. From here either through a ValueChanged eventbinding set to the clientInfo var and a custom session var for storage or through some PLC code monitoring that value you can keep a record of the previous page(s) visted. From there you just need to create a button with the Navigate action that uses your stored pageID.