It's possible to add custom functions and use then in your reports. You could use next function to do this:
JavaScript
public static addFunction( category: string, groupFunctionName: string, functionName: string, description: string, typeOfFunction: string, returnType: Type, returnDescription: string = String.empty, argumentTypes: Type[] = null, argumentNames: string[] = null, argumentDescriptions: string[] = null, jsFunction: Function = null ): StiFunction {}
Here is a sample. You could based on it:
JavaScript
var function1 = function (checklist, state) { var result = ""; return result; } function2 = function (sender, value) { return value; } Stimulsoft.Report.Dictionary.StiFunctions.addFunction("checklistFunction", "checklistFunction", "checklistFunction", "", "", String, "", [String, String], [""], [""], function1); Stimulsoft.Report.Dictionary.StiFunctions.addFunction("checklistFunction", "checklistFunction", "checklistFunctionDrill", "", "", String, "", [Stimulsoft.Report.Components.StiText, String], [""], [""], function2);
0 Comments