getUfeFunctions(mode: PP.Ufe.TransfTreeMode, callback: PP.Delegate | Function, errCallback: PP.Delegate | Function);
mode. Tree of functions.
callback. Handler processing batch query completion.
errCallback. Handler that processes incorrect completion of a batch query.
The getUfeFunctions method returns a tree of functions for formula editor.
To execute the example, the HTML page must contain the TransformDialog component named dialog (see Example of Creating the TransformDialog Component). Get the number of functions for a simple tree:
// Get service of expressions PP.Object.defineProps(PP.Ufe.Ui.TransformDialog, 'ExpService', True); var expService = dialog.getExpService(); // Get the number of functions for a simple tree var func = function(sender, args) { var res = JSON.parse(args.ResponseText); console.log("Number of functions: " + res.GetMsInfoResult.meta.ufeFunctions.its.Item.length); }; // Return a tree of functions for formula editor expService.getUfeFunctions(PP.Ufe.TransfTreeMode.Simple, func);
As a result the console displays the number of functions for a simple tree:
Number of functions: 134
See also: