Hi, Get all the fields for the form (ARServerUser.getListFieldObjects), then iterate over the resulting List<Field> to find the field that matches your name, then get its id. Or, you can do similar by getting all field ids first (getListField), then iterate over the resulting List<Integer> field id's - getField for the current id & check whether it matches the db name you're looking for. When a match is found, break out of the loop. May be, you want to make this logic into a helpler method.
Thanks Appajee //////////////////////////////////////////////////////////////////////////// * Have you registered yourself on BMCDN yet? Please go to http://developer.bmc.com. It has plenty of resources, discussion forums, SDKs, downloads etc around BMC Remedy products. * To benefit the user community and leverage other's contributions, please consider posting your future questions on BMCDN within appropriate forum: 1. BMCDN Home » Forum Home http://developer.bmc.com/jiveProd/forumindex.jspa?categoryID=1 2. For AR System specific issues BMCDN Home » Forum Home » BMC Foundation » AR System (Public) http://developer.bmc.com/jiveProd/forum.jspa?forumID=10 * Useful locations you may be interested on BMCDN: 1. BMCDN Home » Forum Home » BMC Foundation » AR System (Public) http://developer.bmc.com/jiveProd/forum.jspa?forumID=10 2. BMCDN Home » Resource Center» Downloads» BMC Foundation » AR System http://developer.bmc.com/jiveProd/kbcategory.jspa?categoryID=502 3. If you are (considering) using "AR System .NET and COM API", then you may want to bookmark BMCDN Home » Resource Center» Downloads » BMC Foundation» AR System» Software Developer Kits (SDKs) » Document 2062 "AR System .NET and COM API 7.1" http://developer.bmc.com/jiveProd/entry.jspa?externalID=2062&categoryID=505 //////////////////////////////////////////////////////////////////////////// -----Original Message----- From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Jarl Grøneng Sent: Thursday, September 20, 2007 11:15 AM To: arslist@ARSLIST.ORG Subject: GetFieldid with 7.1 Java API Hi, Trying to use the Java api to retrieve the fieldid, but does not get it. I have the formname and the fieldname (not fieldlabel). Anyone? Regards, Jarl _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the Answers Are" _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the Answers Are"