Custom-defined functions for retrieving Data

Stimulsoft Reports.WEB discussion
Post Reply
junixquiaoit
Posts: 38
Joined: Thu Jun 23, 2016 2:03 am

Custom-defined functions for retrieving Data

Post by junixquiaoit »

Hi Sirs/Ma'ams,

I would like to ask if there's a way to create a custom-defined function that uses data from Databand as parameters and use these to retrieve data in SQL that returns a value. In short, if there's a way to create a custom-defined function that doesn't use a Data Source. If there's a way, I would like to know how can it happen.
jp.png
jp.png (93.44 KiB) Viewed 1913 times

Thanks.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Custom-defined functions for retrieving Data

Post by Alex K. »

Hello,

As a way, you can send in your function DataTable - DataSourceName.DataTable
Please check the sample project with custom function in the attachment.

Thank you.
Attachments
AddCustomFunction.zip
(36.11 KiB) Downloaded 166 times
junixquiaoit
Posts: 38
Joined: Thu Jun 23, 2016 2:03 am

Re: Custom-defined functions for retrieving Data

Post by junixquiaoit »

Hi,

It is working on run time. Thanks for the help.

But I would like to know where I can see my custom-defined function on Designer. Is it available also on Expressions window?

Thanks.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Custom-defined functions for retrieving Data

Post by HighAley »

Hello.

You could use your custom functions on the Code tab.
Please, add them before the Auto Generated Code.

Thank you.
Post Reply