on 01-20-2014 10:12 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.