method


Returning a generic ADO.Net dataset from ABL

I'm trying to call a .Net object method that returns an untyped-generic System.Data.Dataset result but I cannot figure out the syntax. Once I do, I'm not sure how to access the records.
My code looks like this:

{bo\DynamicQuery\DynamicQuery_ds.i}
DEF var hProc as handle.
DEF INPUT-OUTPUT Parameter dataset-handle hDS.

Run bo\DynamicQuery\DynamicQuery.r PERSISTENT SET hProc No-Error.
IF VALID-HANDLE(hProc) THEN DO:
RUN ExecuteByID IN hProc (input "UFM-Cfg-Insite", {&dataset-handle hDS}).
END.
ELSE DO:
Message "InSite Configurator: Unable to create Dynamic Query BO".


Syndicate content