cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing Contract Document Line Items through scripting

Former Member
0 Kudos

Hi Gurus,

How can we access the line item through this Interface LineItemIBeanIfc we are trying to change the item type using method setMinimumQuantity(AmountIfcvalue), within a contract.

We tried using accessing through doc. statement but we get error that
method does not exist.

Regards,

Dave

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Dave,

Are you sure Contract Documents have line items?

I could not find any standard collection used in Contract document (2002) except these:

Doc Versions

customize hierarchy

Misc clauses

DS_Signers

If you want to access line items for business document having line items (e.g. RFx, Agreement) you can write script:

//get the line item collection of the document

SubordinateCollectionIfc lineItemCollection =doc.getLineItems();

  for(int i=0;i<lineItemCollection.size();i++)

  {

  LineItemIBeanIfc lineItemMember = (LineItemIBeanIfc) lineItemCollection.get(i);

   //to get line item minimum quantity

  AmountIfc lineItemMinQuantity= lineItemMember.getMinimumQuantity();

//to set the value for field MINIMUM_QTY

//declare a variable and pass value to AmountIfc AmountIfcvalue

lineItemMember.setMinimumQuantity(AmountIfcvalue);

}

Hope this helps.

Regards,

Kumud