Page 1 of 1

DisplayAttribute of an enum value

Posted: Mon Oct 08, 2018 8:50 am
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.

Re: DisplayAttribute of an enum value

Posted: Wed Oct 10, 2018 7:20 am
by Lech Kulikowski
Hello,

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

Thank you.

Re: DisplayAttribute of an enum value

Posted: Wed Oct 10, 2018 1:04 pm
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).

Re: DisplayAttribute of an enum value

Posted: Fri Oct 12, 2018 1:05 pm
by Lech Kulikowski
Hello,

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

Thank you.