This is a migrated thread and some comments may be shown as answers.

Implementing Custom User Functions

1 Answer 819 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Samuel
Top achievements
Rank 1
Samuel asked on 16 Jun 2020, 02:33 PM

Hi!

I'm not sure if this is the right place to post this. I'm trying to figure out how to implement custom user functions for use with the reporting server. I was successfully able to implement custom aggregate functions as per this documentation: https://docs.telerik.com/reporting/expressions-user-aggregate-functions

However, when attempting to implement custom functions using this documentation, I cannot get it to work: https://docs.telerik.com/reporting/expressions-user-functions

The functions implemented in this way show up for use in the standalone report designer, but when using them they return an error: "function not defined in current scope"

Am I missing something obvious? Any help would be appreciated! 

Thanks

     

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 19 Jun 2020, 07:09 AM

Hello Samuel,

Generally, the Expressions are evaluated against data scopes. Do you pass arguments with your custom user function? Do you use data field values in the Expressions for these arguments? Are the fields valid in the scope of the Expression?

Feel free to send us a runnable sample report and the code of the function for local investigation.

The following KB may be useful when deploying the user functions in the Report Server - How to configure Telerik Report Server to use reports with custom functions.

Regards,
Todor
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
General Discussions
Asked by
Samuel
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or