Jarl, If you only have the field name, then you need to get all the fields from the form and iterate over them until you find the field you want.
The code below shows how. Calman import java.text.MessageFormat; import java.util.List; import com.bmc.arsys.api.ARServerUser; import com.bmc.arsys.api.Field; public class FindFieldByName { public static void main(String[] args) throws Exception { ARServerUser context = new ARServerUser("Demo", "", "", "localhost"); context.login(); List<Field> fields = context.getListFieldObjects("Sample:Classes"); for (Field field : fields) { if (field.getName().equals("Spell Check")) { int fieldId = field.getFieldID(); // Use Integer.toString() to print field id to prevent locale formatting System.out.println(MessageFormat.format("Field ID of {0} is {1}", field.getName(), Integer .toString(fieldId))); break; } } } } -----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"