(as far as i know) there is no “regular” way to switch pages within Portal.
Thats why sometimes we use a (dirty) trick:
Every page has its own ID (as part of the whole url to the page)
So all we do to move from one page to the other is create a dummy button on a page we want to move from, that contains the link to the page we want to move to (within a html tag that we enter as the button name):
Let’s say I have a solution where I need to pass a variable from a page and by taking that value opean related data in the other page e.g.
supplier is logging into a logging portal
supplier is validated
Now this supplier has some related detail data which is stored in DB
requirment is once supplier is validated in login portal take the supplier ID from login portal and using the same supplier id show his/her data in another page which has a table portlet to shoe the data
well (if i understood right) for this i would use either Flow properties or a table in the DB (if available) and include that in the flows for datasource/filtering.
So if your suppliers have separate logins to Flow Portal (meaning 1 supplier = 1 flow user) then you can set some Flow Properties for that user (for example SupplierID, Site…) and then use those values in your selects for the datasource of the page you would be navigating to.
If you have the suppliers log onto Portal with a general user and then once they are in they “log in” again somehow (through a flow or by filtering) then that is the time you can set the value of these properties on that general user by using the Flow Environment connector.
Once they find their WO they need to click the QuickAction button in the list next to the WO number and that just writes down the WO number to a property on the user as the selection they made, Then on the next screen that selection is read for all the portlets.
I could write users in Flow DB using FLow connector but still didn’t get how I can take a variable from one page to another like below.
User logs into a sign in page behind this I have a workflow in Flow Studio
The I redirect teh user to another page by providing URL of another page in the link feature of user step
Now in teh new page I want to automatically show the data in a table porlet only related to the user which is coming from sign in page .
It has a machine flow connected to a QuickAction button.
All that machine flow does is takes data (WONo) from the row that the button was clicked on and writes it to the DB (here we have access to a MS SQL DB but we can also write it down to a user property)
And at the begining of that datasource flow (before we fetch the data it will provide the record portlet) we are fetching the WONo that we saved when hitting that QuickAction button on Page 1, and then we are using it to fetch data for record portlet
User hits QuickAction on Page 1, WONo is saved, Page 1 portlet refreshes
Listener from Page 2 record portlet knows it needs to refresh now too and at the start of getting data, gets the WONo value that was saved and uses it.
User is still on Page 1 but can now hit the Select button and navigate to Page 2 which has data based on WONo saved.
So the same principle should apply for your use case, save your data (role) during the running of the flow, in the datasource of the Portal page you are navigating to first read it and then use it to display data based on it.