I am trying to insert new Lines in AgreementLineQuantityCommitment,and they are inserted in table but do not apperar in form,the code is : Any suggestion?
LineqtyComm.initValue();
select firstOnly LineqtyComm where LineqtyComm.Agreement == _aggrHeader.RecId;
LineqtyComm.initFromAgreementHeader(_aggrHeader);
LineqtyComm.ItemId = _itemId;
LineqtyComm.CommitedQuantity = _qty;
LineqtyComm.ProductUnitOfMeasure = _unitOfMeasure;
LineqtyComm.PriceUnit = _PriceUnit;
LineqtyComm.ExpirationDate = _expirationDate;
inventDimLoc = LineqtyComm.inventDim();
inventDimLoc.InventSiteId = _SiteId;
inventDimLoc.InventLocationId = _locationId;
inventDimLoc.wMSLocationId = _whId;
inventDim = InventDim::findOrCreate(inventDimLoc);
LineqtyComm.inventDimId = inventDim.inventDimId;
LineqtyComm.LineNumber = AgreementLine::lastLineNum(_aggrHeader.RecId) + 1.0;
LineqtyComm.initFromInventTable();
LineqtyComm.insert();