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

Using Common Static Methods in different Report layouts

1 Answer 93 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 2
Bronze
Iron
Veteran
Mark asked on 13 Dec 2018, 02:21 PM

I am not sure how to accomplish this.  We want to create a static method, that would be used by multiple reports (ie converting a binary to an image).  Currently, I am having a hard time trying to figure this out.  I know we can use custom methods in the report layout, but only if they exist as a static method of that report layout.  

 

Also, we are designing reports that inherit from a base or abstract report layout (might only have a header and/or footer band with common controls).  Is there a way to create these methods at the parent level of the class so that all inherited reports see that method? 

 

Now, I have been messing around with inheritance on the reports and trying to create a method at the parent level and see if the inherited reports can see the method, but they don't.  I have also tried creating a Static Class in the namespace, creating a static method in that class, yes, the reports, when rendered can't see them either.

 

Any help for this will be greatly appreciated.

 

Thanks

Mark

1 Answer, 1 is accepted

Sort by
0
Mark
Top achievements
Rank 2
Bronze
Iron
Veteran
answered on 13 Dec 2018, 02:47 PM

I needed a better search to find my answer.  You can disregard my question.

 

Anyone looking for this answer, look up "User Functions" in Reporting, it's all explained there.

 

Thanks

Tags
General Discussions
Asked by
Mark
Top achievements
Rank 2
Bronze
Iron
Veteran
Answers by
Mark
Top achievements
Rank 2
Bronze
Iron
Veteran
Share this question
or