Vishal
2/17/2006 9:15:00 AM
You can try this function to get the work done
This method takes the name of the enumerator as a string,
and the enum variable and returns the element name for
the value in the enum variable
static str enumName(str _lEnum, anyType _lEnumValue)
{
DictEnum dictEnum;
;
dictEnum = new DictEnum(xutilelements::getNode(
xutilelements::find(utilelementtype::Enum,_lEnum)).applObjectId());
return dictEnum.index2Symbol(_lEnumValue);
}
--
Vishal
Microsoft Axapta
"Raj" wrote:
> Hi ,
> I have a method which fetches the wanted status from the table
> ProdParmStatusDecrease , it return me the number , but i want to display the
> associate enumvalue of that number in the report.
>
> how to get the enumvalue for a number return from the query.
>
> any one have code for this.
>
> thanks in advance
>
> rr