DisplayAttribute of an enum value

Stimulsoft Reports.WEB discussion
Post Reply
Stéphane
Posts: 12
Joined: Fri Jun 30, 2017 11:32 am

DisplayAttribute of an enum value

Post by Stéphane »

Hello,

In Stimulsoft.Reports.Web .NET Core, I register my data with the report.RegBusinessObject method. There is a property of enumeration type in my business object. I would like to get the value of the DisplayAttribute instead of the enum value. What's is the best way to do it (without modifying my business object) ?

Cordially,
Stéphane.
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: DisplayAttribute of an enum value

Post by Lech Kulikowski »

Hello,

Please send us a sample project for analysis. We will try to find a solution.

Thank you.
Stéphane
Posts: 12
Joined: Fri Jun 30, 2017 11:32 am

Re: DisplayAttribute of an enum value

Post by Stéphane »

Here is a sample project in attachment. Without modifying my business object, I would like to show the display attributes ("En cours" and "Annulé") instead of the enum values (Pending, Closed).
Attachments
WebApplication1.zip
(18.19 KiB) Downloaded 125 times
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: DisplayAttribute of an enum value

Post by Lech Kulikowski »

Hello,

Unfortunately, not possible. You can add an additional column for display value and show it in the report.

Thank you.
Post Reply