Enum Type

HI all,

I have one enum type

Ex: PaymStatus

enum Elements are Processed, Notprocessed, error, PendingPayment

Now I have Integer Id(Enum value) ,i need to find enum label for that.

Give suggestion for that.

Hi,

DictEnum dictEnum = new DictEnum(enumId);//declare enum based on enum id…

int numEnum;

str label;

;

label = int2str(dictEnum.index2value(i)));// where i = enum value(int)

I have found.

dictEnum = new DictEnum(xutilelements::getNode(

xutilelements::find(utilelementtype::Enum,‘paymstatus’)).applObjectId());

return dictEnum.index2Name(_EnumValue);

Hi chaitanya,

i have implemented your code.

I need enum label only.

but it retrieves the enum value