Data view not updating after button is pressed.

Hello,   Currently I have a page with 2 data views, the main data view has an ID text box and a button that executes a microflow. The 2nd data view is nested inside of the main data view.   What I’m currently trying to do is get the value from the id text box with the press of the Get Account button, and then having that data be generated inside of the 2nd data view. Currently I’m able to send the text box data into the microflow and show the data within a log, but I’m missing the second part of showing the data in the nested data view.   Here’s what I have right now.   Main Page   ACT_ListAccount   ACT_UserInput   AccountList entity within the domain model   Feel like I’m close to getting the data to update, but I can’t find it.   Thank you,   Aaron Stockman
2 answers

So what may be happening here is that both data source microflows for your dataviews may be running at the same time (page load). That would result in an empty object being passed to the nested data source, hence no data being shown. 


Then once an id is added and the Get Account button is pressed, you’ll see the id in that instance of ACT_ListAccount but that isn’t populating the nested dataview because it was called from the button, not the dataview’s datasource (that’s assuming the ACT_ListAccount microflow is called from that Get Account button). 


Maybe try adding visibility control to the nested dataview so that it only becomes visible once the id field is filled in. This would ensure that the nested DS only runs once the containing AccountList object has an id. This may require some adjustment of the Get Account button logic (or maybe an on change microflow) to make sure the visibility is enabled at the right time. 

Hope this helps!


Hi Aaron,


Are you sure you are logging the attributes from the object you are returning to the 2nd data view? Because returned object might be empty and that would explain seeing empty fields.


Also does Get Account button have synchronize/save changes or a microflow/nanoflow behind it?