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

User defined functions not regonized

1 Answer 229 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jordan
Top achievements
Rank 1
Jordan asked on 09 Oct 2015, 04:05 PM

Hi,

 I've got a user defined functions which is included in a EncounterDatasource.dll below is the code

[Function(Category = "My Functions", Namespace ="My",Description= "Get array item")]
public static string GetArrayItem(string[] values,int index)
{
   return values[index];
}

My problem is upon deployment it cause error in the fields using the said functions. The error is

An error has occurred while processing TextBox 'textBox81': The expression contains object 'My' that is not defined in the current context.

On the Telerik Report Designer its working fine since I've able to add the dll reference in the Telerik.ReportDesigner config but not on the application its not working. I've also made a reference to the dll from my project and make sure it reside with the report. What would be the possible cause of this and how would I deploy report using user defined functions from external dll?

 

Regards,

Jordan

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 13 Oct 2015, 11:57 AM
Hi Jordan,

Please test to configure the application with the steps listed in Previewing a report definition that uses an external assembly. Also note that multivalue parameters are evaluated as arrays of objects, thus the methods' signature must be considered with the passed in the expression values.


I hope this information is helpful.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Jordan
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or