Quantcast
Channel: Dynamics User Group
Viewing all articles
Browse latest Browse all 15740

Enum2Str Conversion

$
0
0

Hi All,

I'm using asp.net as front end and AX as back end. I'm retrieving data from AX by using business connector.

We are using the Address Master in AX for storing customer addresses.

The AddressType is an Enum field, as you all know.

Now, while retrieving it from dot net am recieiving the Enum values like 1, 2, 3 and not the string values of it like Home, Delivery, etc..

I want to know how i can convert these enum to str in the dotnet front.. Because, though i tried it in AX side, while retrieving the string values are not populated.

The code am using in AX is,

AddressType 7;

str Addr;

;

7 = AddressType::MailingAddress;

Addr = enum2str(7);

I want to know, how to do this at dotnet end.

Thanks!


Viewing all articles
Browse latest Browse all 15740

Trending Articles