Skip to Content
avatar image
Former Member

Ho to access the filed of any standared collection

1)How to access the Standared collection in Doucment type.

2) When we write

ineTyp_coll = doc.getCollectionMetadata("MA_LINEITEMS").get();

3)how to equal the value getting form enum type method  with string.

like:lineItem.getLineItemTypeEnum(); which will return some value and i have to match with some string

beacuse the below condition is not working even if I am getting the same value as mentioned.

if(lineItem.getLineItemTypeEnum().equals("MATERIAL"))----not going inside

PLease suggets me .

Thanks

peeyush Ranjan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Feb 12, 2015 at 09:12 AM

    Hello Peeyush, 

    Inorder to equal the value getting form enum type method  with string try as below

    1) Yes you can access

    3) LineItemTypeEnum = getLineItemTypeEnum();

        hashValue= LineItemTypeEnum.hashCode();

        if(hashValue == x){

        }

    And the value of x is as below

    x=1 for MATERIAL - UNDOCUMENTED

    x=2 for SERVICE - UNDOCUMENTED

    x=3 for BOM - UNDOCUMENTED

    x=4 forPACKAGED - UNDOCUMENTED

    Regards,

    Raj

    Add comment
    10|10000 characters needed characters exceeded