Page parameter microflow versus Microflow Datasource dataview?

-1
Visual model of the two methods   Hey guys, I was really wondering what's the best way to go, what the pros and cons are between (if I say correctly) a page parameter microflow versus a dataview with microflow datasource? For the record, when you navigate to a page without natively passing an object (i.e. the trigger to the new page doesn't contain an object parameter), there are two ways to populate the new page with a root object: Microflow, retrieve object (now: X)  → Show page and pass object 'X'  → Page with Dataview 'content' ( <- 'X') Show/GoTo page  → Dataview with microflow datasource, retrieve 'X'.   from my inexperienced perspective, I'd go with the second method and always use datasource micro flows, instead of showing a page and passing a root object (1), as you'll have a more clear overview what is available on the page, plus a button navigates directly to a page, instead of viavia. Really hoping for some people to share their experienced opinion :)
asked
2 answers
3

Hi Sander,

There are benefits to both approaches. When using a datasource as microflow, I tend to only do this when im creating new objects. The microflow for this is really short and there are no delays when executing it.

For using a datasource as context, I almost always use this so i can run complex logic before rendering the page. This prevents the user from navigating to an empty page and having to wait for data to populate. Another benefit is when you are pass executing the microflow, you can use parameters from a different page. So in your example, I can pass a parameter from page 1 to the microflow connected to the button, and use that to execute logic. 

 

Hope that helps!

answered
1

Hi Sander,

 

Another difference is when and how often the microflows will be triggered.

 

Case 1:

The microflow will be triggered/processed only once: when the user will click on the button to show the Page 2.

 

Case 2:

The DataSource Microflow will be triggered/processed EVERY TIME you reload the page or get a change within the page with a "Refresh in client".

For example, if within your Page 2 you have a field with an "On Change" event to calculate a value automatically, you may need to "Refresh in client" to show the change, and in this case your DataSource Microflow will be triggered.

 

answered