Make activity Open Page accept more than one parameter. - Mendix Forum

Make activity Open Page accept more than one parameter.

25

Make activity "Open Page" accept more than one single object. Make it also accept more than one single object, a list of objects and accept a variable. 

Currently, activity "Open Page" only accepts  one parameter from the calling microflow.  And only a single object.

Often you need to pass more than just one single object. Two objects, since the page can have more than one page parameter. Or an object and a variable. Or an Objectlist.

Another advantage is that you would no longer need the workaround to add an association to your PassedObject, in which you temporarily save the second object. Like in https://community.mendix.com/link/questions/89883

Related to https://community.mendix.com/link/ideas/20, which is about a microflow's input parameters. This idea is about microflow's 'Open-Page' parameters.

 

asked
2 answers

It indeed relates. So much advantages when having more possibilities when opening a page.

Created

Possibly relates to my suggestion/idea for a "advanced show page" action https://forum.mendix.com/link/ideas/36

I imagine the advanced show page action to work as followed:

  • Open page via calling a microflow, the page data source becomes this microflow which will load the content and contain the 2 show page actions
     
  • The data source microflow has an early trigger to show the page which is action 1

    (If data was available before the trigger, make sure to resolve the containers / lists promises directly on the trigger that shows the page)
     
  • Mark seperate action steps in microflow to "resolve promise", these can be sub_microflows, retrieve by association, retrieve from DB, and string values for titles / labels / whatever.
     
  • The final action 2 must resolve all the promises in the page (any promise without data will be resolved with an error / empty state).
     
  • The page structure defines promised data to be resolved in action 2.
     
  • Allow for setting in action 1 to show the page with pre-loaders or wait till the resolve promises (action 2) is reached in the microflow.
Created