Reporting: Using Custom Functions

Expressions are used for advanced field bindings, calculated fields, data source parameters and other report elements. They support a rich language out of the box, but you can add custom functions to implement your own features, standardize algorithms company-wide and reduce maintenance effort.
Technically, custom functions are classes derived from a framework base type and implementing framework interfaces. All you need to do is override methods to supply your custom behavior. Custom functions need to be registered at runtime, and if you register them in a report constructor, you can even use them in the Visual Studio report designer.
The following demo includes three custom function scenarios of growing complexity.

⏱ Timeline ⏱
0:44 Implement a custom function to format dates
2:50 Register the first custom function
3:14 Test the custom function at design time
3:50 A custom function for a proprietary ranking algorithm
5:38 Use the custom function to define a calculated field
6:40 Group by the rank
8:40 Create a custom function for a parameterized data query
11:50 Work with complex parameter types
12:42 Apply the custom function to generate a dynamic query URI

⚡️⚡️⚡️ Overview ⚡️⚡️⚡️
https://www.devexpress.com/subscriptions/reporting/

📒 Documentation 📒
https://docs.devexpress.com/XtraReports/403263/web-reporting/javascript-reporting/angular/report-designer/quick-start/customization/custom-functions-in-the-expression-editor

🚀 Get Started Today – Free 30 Day Trial 🚀
http://dxpr.es/NUGET
http://dxpr.es/FREE-TRIAL

✅ Pricing and Online Demos ✅
http://dxpr.es/BUY
http://dxpr.es/DEMOS

🆘 We Are Here to Help 🆘
http://dxpr.es/SUPPORT

👍 Follow DevExpress on Social Media 👍
http://dxpr.es/FACEBOOK
http://dxpr.es/TWITTER
http://dxpr.es/BLOGS

🏁 Review Customer Testimonials 🏁
http://dxpr.es/TESTIMONIALS
http://dxpr.es/MARKETPLACE

#DevExpress, #devexpress_Reports, #devexpress_winforms, #devexpress_desktop, #reporting,

Home