Pages

Banner 468 x 60px

 

Tuesday, November 21, 2017

Close Form using x++

0 comments
Close Form using x++ :

public void close()
{
    FormRun     _FormRun;
    super();
    _FormRun    = element.args().caller();
    if (_FormRun)
    _FormRun.dataSource().research();
}

void clicked()
{  
    //super();
       
    if(BOX::yesNo(strFmt("Are you sure to create PO %1 ?", PurchTable.BITLocalPO), DialogButton::No,"Create Purchase Order") == DialogButton::Yes)
        {
            element.closeOk();
        }
   
    else
    {
        element.close();
        super();
    }
}


void clicked()
{
    super();
    if (box::yesNo("Anda yakin untuk Batal ?", dialogButton::No, "Pembatalan") == dialogButton::Yes)
    {
     element.Batal();
    }
}

    if(exist)
      {
        if(BOX::yesNo("Create item PR to PO?", DialogButton::No,"Create item PR")== DialogButton::Yes)
        {
            this.createItemPO();
        }
      }





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 ...