How do I get an enum value in Custom BO?


Author
Message
Michael Reese
Michael Reese
StrataFrame User (407 reputation)StrataFrame User (407 reputation)StrataFrame User (407 reputation)StrataFrame User (407 reputation)StrataFrame User (407 reputation)StrataFrame User (407 reputation)StrataFrame User (407 reputation)StrataFrame User (407 reputation)StrataFrame User (407 reputation)
Group: StrataFrame Users
Posts: 235, Visits: 1.6K
How do I get an enumeration into my Custom BO.

We took the plunge and purchased Sharp-Shooter. We are now utilizing Crystal and SS which replaced ActiveReports. Great move! Now I am trying to display an Enumeration value in the Custom Report BO?

How do do that?

Thanks Much

Example

Enumerations.PhoneType

Michael

Patient.Enumerations.PhoneType

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Are you just wanting to show the text representation of the enumeration on the report?  I assume that is what you are getting at.  In this case, if you are tagging each enum item with the MicroFour.StrataFrame.Tools.EnumDisplayValue("MyValue") (which I recommend) then you can call the following code:

MicroFour.StrataFrame.Tools.Common.GetEnumDisplayValue(MyBO.MyEnumField)

In a report scenario, it would most likely be easiest to create a custom property to expose this.  Let me know if this isn't what you were getting at.

Michael Reese
Michael Reese
StrataFrame User (407 reputation)StrataFrame User (407 reputation)StrataFrame User (407 reputation)StrataFrame User (407 reputation)StrataFrame User (407 reputation)StrataFrame User (407 reputation)StrataFrame User (407 reputation)StrataFrame User (407 reputation)StrataFrame User (407 reputation)
Group: StrataFrame Users
Posts: 235, Visits: 1.6K
Thanks Trent,

I also found an excellent example in the Flix Application. I should have gone there before posting this.

Michael

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search