Pass View to a Function in App Studio

In App Studio, I’m performing a dialog-search and I can see the result sitting in the system dataview “searchResult”. I need to pass those records to a function for further processing.

Does anyone have a way to pass this “system dataview” (searchResult) to a function that requires a DataSet? I’ve tried the erp-function AND the rest-erp widgets, per old posts, to no avail.

Any assist will be appreciated.