Convert dataview to dataset in Application Studio

I’m creating a button in Transfer Order Shipment Entry to show all “open” transfer order lines in a grid that a user could select and then create shipment lines for each selected.

I started by making a UBAQ that I am showing in a slide-out grid after you click the button. The only updateable field is a calculated boolean field that is just intended to communicate which rows they want to add. So the function is expecting a dataset input which is a list of the rows. But I’m stuck at the point where I take that grid/BAQ/dataview where user has selected specific lines and turn it into a dataset that I could send to the function. Can I do this with a variable? Or do I add some logic in my UBAQ? Is there a more straightforward way? The BAQ is a dataview on the app and I am assuming that when I check the boxes on each row, that dataview is being updated.

So all I really need to do is take that dataview and turn it into a dataset. Unless there’s a better way. Open to ideas.

You just send the dataview to the function. The input parameter is {dataview}

2 Likes

And the function will accept a dataview as a dataset? Is it that simple?

Yes

1 Like