cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the long description of a lineitem

Former Member
0 Kudos

Hi,

I am able to get the description of a line item present in Master Agreement by following code.

lineItemCollection = agreementBean.getLineItems();

collectionsize = lineItemCollection.size();

collectionbean = lineItemCollection.get(0);

type = collectionbean.getDocumentDescription();

But I am unable to get the long description of the line item of a Master Agreement.

Thanks & Regards,

Swastik

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Swastik,

A LineItem Bean is not exactly a Material Bean.

In order to access fields on the related material you would need to call getMaterialObjRef() on the LineItem, use a material Home Bean to find that material Bean then getLongDescrip() ;

Regards,

Alan

Former Member
0 Kudos

Hi Alan,

Thanks for your quick response.

I want to retrive the " Long Description" which is present in the Line Item tab of a lineitem.

can you please help me out regarding this.

Regards,

Swastik

0 Kudos

Swastik,

OK, the LONG_DESC field on the LineItem does not have an accessor method exposed. so you will have to get to the field using a more generic method of getFieldMetaData():

BigTextIfc longDesc = lineItem.getFieldMetadata("LONG_DESC").get(lineItem);

Alan