@klincecum Sorry I had help writing this code and not fluent enough to apply your suggestion using CallService
@CSmith my plan for this function is to call it from Application Studios and wanted to test pass parameters. Should I be passing a string and parsing it instead of trying to use a table?
Thank you for your assistance, greatly appreciated
String is ok unless you’re passing a huge amount of info… Hard to tell from the information you have provided. Curious, why use a function to getBaqResult? What are you trying to do perhaps we can help?
We are converting a ton of Customization Forms to Kinetic forms and call BAQs quite frequently. They have different numbers of parameters and whether they are required or not. We figured we could use this getBaqResult to pass parameters as a standard and have the code block build the parameters before the call.
You might be able to call the BAQSvc REST endpoint. The URL contains the parameters in the query string (after the ‘?’). You would build up your parameter in a variable in TransView and then bind that when you call the BAQ.
So I understand where you guys are going but, I think I left out one bit of info. We would be Invoking this getBAQResult in another Function that processes data before passing a dataset back to the Kinetic Application.
For an example Currently I have a customization that loads a detail grid on the bottom and then summarizes each cell in the Summary Grid at the top by Month, our Backlog. If I tried to do this in Kinetic Application Studio I would have to load the Detail Grid then pass it to the Summary Function to generate the Monthly Data. Note that the grid below is not populated for this image, sensitive data.
Each one of the Cells in the summary grid is a method that calculates against the Detail Grid One month at a time.
I tried passing a dataset to a function and have not had a lot of luck.
So I figured I could create a function that calls for the detail grid data, manipulate that data into a table, save the Summary Table, then call the summary and Detail tables to the grids on the Kinetic Application Studio Dashboard cards or whatever those “components” are called.
We are trying to use the code we have now as much as possible in code blocks as part of functions to convert.
Sorry for the novel…