Thanks Appajee ... With your help I was able to figure it out. It looks something like this:
EnumLimitInfo einfo = (EnumLimitInfo) Field.getFieldLimit(); EnumItems[] enums = einfo.getEnumCustomLimit(); For each EnumItem you can do something like this " enums[0]. getEnumItemName().toString()". Sean From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Papolu, Appajee Sent: Wednesday, November 07, 2007 6:09 PM To: arslist@ARSLIST.ORG Subject: Re: Java API Question Regarding fields of type Enum ** Get the definition of the field in question (using FieldFactory.findByKey in <7.1 version, or, getField method in 7.1). Look into its Limit information. You'll find the lookup information for enum labels & values. So, only once you would want to retrieve this field definition up front and maintain a mapping of the values & labels; then whenever you have an entry with enum field value as an int value - you can simply look it up in this mapping for the corresponding string value. Appajee ________________________________ From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Garrison, Sean (Norcross) Sent: Wednesday, November 07, 2007 2:17 PM To: arslist@ARSLIST.ORG Subject: Java API Question Regarding fields of type Enum Someone else has written the java code and I am trying to assist him w/ a problem. He is trying to get the enum values for a field in a string format ... unfortunately it returns the integer value instead. So if I have this: 0 = Enum1 1= Enum2 2 = Enum3 Here is an example of the call he is currently using (I think ....) Entry.EntryItems[0].getValue().toString() He is getting the values 0,1,2 when he wants Enum1,Enum2, Enum3. We are using version 7 of the Java api. I know this has to be an easy call ... but we just can't see it. Anybody know how to do this? Thanks, Sean __20060125_______________________This posting was submitted with HTML in it___ __20060125_______________________This posting was submitted with HTML in it___ _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"