User defined functions not regonized

2 posts, 0 answers
  1. Jordan
    Jordan avatar
    3 posts
    Member since:
    Oct 2015

    Posted 09 Oct 2015 Link to this post


     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?




  2. Stef
    Stef avatar
    3610 posts

    Posted 13 Oct 2015 Link to this post

    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.

    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
Back to Top