It is probably not necessary to check beforehand if a field with the
same ID doesn't exist. If it does, the create function should fail and
throw an exception (most likely ARERR 407, Duplicate field or VUI-ID in
the definition), which your program then might catch and handle somehow.
Regards,
Thilo Stapff
Phil Murnane wrote:
I'm using the 7.1 Java API to create a new field on a form. Be
All:
I'm using the 7.1 Java API to create a new field on a form. Before creating
the field, I'd like to make sure a field with the same Field ID does not
already exist. I found the isPresent() method of the Field object in the
javadocs, but since a generic Field cannot be instantiated (must use
CharacterField or IntegerField, etc), how do I use isPresent() to check for any
type existing field with a given Field ID? Do I have to first check for an
AttachmentField, then check for an AttachmentPoolField, then check for a
CharacterField, etc?
Sorry if this is a dumb question -- I'm new at this OO programming stuff.
TIA,
--Phil
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"