cancel
Showing results for 
Search instead for 
Did you mean: 

Ho to access the filed of any standared collection

former_member227405
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member207877
Active Participant
0 Kudos

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

former_member227405
Participant
0 Kudos

Thanks a lot

Regards

Peeyush

Answers (0)