My colleague created a function to use with some application… I want to use the same function within a BAQ. (it is a calculation based from two parameters and returns result)
Is this possible ? I cannot find how.
I used to call directly some functions within the database. But how do I call Epicor functions from a BAQ ?
My library is called ‘GestionTrsp’ and the function is called ‘GetBudgetPourRoute’
From the SQL side, you can’t, but from the UBAQ BPM side, all day long.
Like Randy showed you can use the widget, or in custom code:
//This returns an object array..
var funcReturn = InvokeFunction([LibraryID], [FunctionID], param1, param2, param3, etc);
var object1 = funcReturn[0];
var object2 = funcReturn[1];
//etc etc
//You may have to do a little casting, depending on what you are doing.
You betcha, then if you are in a classic custom you can call the uBAQ the same way you would with Dynamic query… Of course everyone is using the Kinetic UI now so no time for any of that old hat