on 02-11-2015 7:11 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.