How can I Define a custom function in Designer

Stimulsoft Reports.JS discussion
Post Reply
simon ren
Posts: 71
Joined: Wed Nov 21, 2018 12:51 am

How can I Define a custom function in Designer

Post by simon ren »

hi, I try to define a custom function in my report,i use the following code define the custom function, it show in the Dictionary's function,then i use my function in my report.
when i run preview.i found if my function has parameters it does't work,if my function has no parameters it work well.i don't know how to deal with this problem.
thanks

Code: Select all

Stimulsoft.Report
              .Dictionary
              .StiFunctions
              .addFunction('Test', 'Test', 'TestFunc', '测试Function', Stimulsoft.System.Int32, Stimulsoft.System.Int32,
              '测试Function',[Stimulsoft.System.Int32], ['i'], ['测试'],function(i){
                return 123;
              });
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: How can I Define a custom function in Designer

Post by Lech Kulikowski »

Hello,

We need some additional time to investigate the issue.

Thank you.

#7453
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: How can I Define a custom function in Designer

Post by Lech Kulikowski »

Hello,

The issue is fixed. The fix will be available in the next release build.

Thank you.
Post Reply