Sweety,
I would recommend using this method.  the 'fieldTypeMask' should use
Contstants.AR_Field_TYPE_DATA, this will give you only fields.  Secondly,
with the 'FieldCriteria' object, you can specify what data to pull back, so
you want ID and Name only, you specify it there.

getListFieldObjects

public List 
<http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html?is-external=true><Field
<file:///C:/Users/longwing.lj/Google%20Drive/ARJavaLib/ardoc81_build001/com/bmc/arsys/api/Field.html>>
*getListFieldObjects*(String
<http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true>
formName,
                                       int fieldTypeMask,
                                       long changedSince,
                                       FieldCriteria
<file:///C:/Users/longwing.lj/Google%20Drive/ARJavaLib/ardoc81_build001/com/bmc/arsys/api/FieldCriteria.html>
criteria)
                                throws ARException
<file:///C:/Users/longwing.lj/Google%20Drive/ARJavaLib/ardoc81_build001/com/bmc/arsys/api/ARException.html>

Returns detailed information for all (accessible) Field
<file:///C:/Users/longwing.lj/Google%20Drive/ARJavaLib/ardoc81_build001/com/bmc/arsys/api/Field.html>
objects
that match with the given criteria.

*Parameters:*formName - the name of the form containing the field to
retrievefieldTypeMask - A bit mask value to specify types of the field.
They are: bit 0: Constants.AR_FIELD_TYPE_DATA
<file:///C:/Users/longwing.lj/Google%20Drive/ARJavaLib/ardoc81_build001/com/bmc/arsys/api/Constants.html#AR_FIELD_TYPE_DATA>
retrieve
data fields bit 1: Constants.AR_FIELD_TYPE_TRIM
<file:///C:/Users/longwing.lj/Google%20Drive/ARJavaLib/ardoc81_build001/com/bmc/arsys/api/Constants.html#AR_FIELD_TYPE_TRIM>
retrieve
trim fields bit 2: Constants.AR_FIELD_TYPE_CONTROL
<file:///C:/Users/longwing.lj/Google%20Drive/ARJavaLib/ardoc81_build001/com/bmc/arsys/api/Constants.html#AR_FIELD_TYPE_CONTROL>
retrieve
control fields bit 3: Constants.AR_FIELD_TYPE_PAGE
<file:///C:/Users/longwing.lj/Google%20Drive/ARJavaLib/ardoc81_build001/com/bmc/arsys/api/Constants.html#AR_FIELD_TYPE_PAGE>
retrieve
page fields bit 4: Constants.AR_FIELD_TYPE_PAGE_HOLDER
<file:///C:/Users/longwing.lj/Google%20Drive/ARJavaLib/ardoc81_build001/com/bmc/arsys/api/Constants.html#AR_FIELD_TYPE_PAGE_HOLDER>
retrieve
page holder fields bit 5: Constants.AR_FIELD_TYPE_TABLE
<file:///C:/Users/longwing.lj/Google%20Drive/ARJavaLib/ardoc81_build001/com/bmc/arsys/api/Constants.html#AR_FIELD_TYPE_TABLE>
retrieve
table fields bit 6: Constants.AR_FIELD_TYPE_COLUMN
<file:///C:/Users/longwing.lj/Google%20Drive/ARJavaLib/ardoc81_build001/com/bmc/arsys/api/Constants.html#AR_FIELD_TYPE_COLUMN>
retrieve
column fields bit 7: Constants.AR_FIELD_TYPE_ATTACH
<file:///C:/Users/longwing.lj/Google%20Drive/ARJavaLib/ardoc81_build001/com/bmc/arsys/api/Constants.html#AR_FIELD_TYPE_ATTACH>
retrieve
attachment fields bit 8: Constants.AR_FIELD_TYPE_ATTACH_POOL
<file:///C:/Users/longwing.lj/Google%20Drive/ARJavaLib/ardoc81_build001/com/bmc/arsys/api/Constants.html#AR_FIELD_TYPE_ATTACH_POOL>
retrieve
attachment pool fields Constants.AR_FIELD_TYPE_ALL
<file:///C:/Users/longwing.lj/Google%20Drive/ARJavaLib/ardoc81_build001/com/bmc/arsys/api/Constants.html#AR_FIELD_TYPE_ALL>
retrieve
all type of fieldschangedSince - A timestamp that limits the fields
retrieved to those modified after the specified time. Specify 0 for this
parameter to retrieve fields with any modification timestamp.criteria - the
infomation to retrieve*Throws:*ARException
<file:///C:/Users/longwing.lj/Google%20Drive/ARJavaLib/ardoc81_build001/com/bmc/arsys/api/ARException.html>
-
if information is not returned


On Fri, Aug 8, 2014 at 5:34 AM, Sweety <sweetykhann...@gmail.com> wrote:

> Hello List,
>
> It has been a quite long I haven't talked to you guys. Hoping all are good
> and enjoying.
>
> I want to fetch the list of data fields only with names and their ids. I
> have tried using method GetListField but it is giving me all the fields on
> the form including buttons, panels etc. I want to fetch only data field
> details from API.
>
> Any suggestions?
>
> Cheers!
>
>
> _______________________________________________________________________________
> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
> "Where the Answers Are, and have been for 20 years"
>

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"

Reply via email to