How to refresh Data View related to Microflow

0
Hi, i have a microflow that returns some data from OQL I'm triggering this microflow from another place, and this works as expected, I'm getting new data in log I'm using this MF with DataView. My problem is that data in DataView is not refreshing. Only after reload whole page I see new value. What I'm doing wrong?
asked
5 answers
1

There are a number of ways you could model this.  I think what you are trying to do is have a dynamic count of the number of rows in a Data Grid 2.  You want this count to update when new objects are created or existing objects are delete.  Here is how I modeled this:

 

I created this domain model:

image.png

 

This design assumes there is always only one ComplaintCount object in the database.  To accomplish this, I created a nanoflow called GetOrCreateComplaintCountObject:

image.png

 

Nanoflow CreateComplaintView:

image.png

 

Nanoflow DeleteComplaintView:

image.png

 

Finally, the page I created:

image.png

NOTE:  the delete button calls the DeleteComplaintView nanoflow.  The New Complaint view button calls the CreateComplaintView nanoflow.

 

This page updates the object count dynamically.

 

Hope this helps,

Mike

 

answered
0

I would suggest to bind Dataview with nanoflow and then call this microflow inside nanoflow. In nanoflow, you have refresh activity that you can use if data is not refreshed automatically. 

answered
0

This does'nt work

 

I'm using nanoflow as datasource

In nanoflow I'm calling my MF

obraz.pngobraz.png 

Value on frontend is always as it was in the page load, after reload, value is correct :( 

I have tried different approach, retrieve data from db and then change object with Refresh in client, but this also doesn't work. 

To be honest, this is basic case, that should not required spending many days to solve :(

answered
0

Can you include a screenshot of your page (in Studio Pro)? 

 

When you asked the question initially, did the dataview on your page have the microflow as the datasource?

answered
0

I have tried with data source that is microflow and is nanoflow.

I can simplify this example. Show correct total after delete or create.

obraz.png

obraz.png

obraz.png

obraz.png

After deleting on the same page

obraz.png

obraz.png

Can you just provide working demo application where this basic case is handled? 

With Nanoflow

obraz.png

obraz.png

answered