Pages

Banner 468 x 60px

 

Wednesday, February 21, 2018

FormCtrl using x++ :

0 comments

FormCtrl using x++ :



void clicked()
{
    ABUTallyHeader  _abutallyheader;
    ABUTallyLine    _abutallyline;

    super();

    while select _abutallyheader where
    _abutallyheader.RefRecId == WMSOrderTrans.RecId
    {

        select count(RecId), sum(Qty) from _abutallyline where _abutallyline.RefRecIdRouteLine == _abutallyheader.recid;

        WMSOrderTrans.qty       = _abutallyline.Qty;
        WMSOrderTrans.QtyBOX    = _abutallyline.RecId;

        if (formCtrl)
        {
            formCtrl.fieldModified(fieldNum(WMSOrderTrans, Qty));
            formCtrl.fieldModified(fieldNum(WMSOrderTrans, QtyBOX));
            wmsOrderTrans_ds.refresh();
        }

        info(strFmt("Update qty : %1 And Box : %2",_abutallyline.Qty,_abutallyline.RecId));
    }

}


0 comments:

A financial dimension value is based on the LAND-00013 record and has been used on a transaction. You cannot delete the LAND-00013 record AX 2012

 A financial dimension value is based on the LAND-00013 record and has been used on a  transaction. You cannot delete the LAND-00013 record ...