Sometimes user forget to enter the
fields which will be required when the process move forward just like
salestaxinvoice In this Article I am showing you to how to Update Field in Grid
through Button Click and our Scenario is to add REMITTANCE NUMBER ID in Vendor
Details
-Go to Vendor Detail and then click
Transaction then go to Setup and Open VendTrans in AOT
-Add Button through Designer 
-And then add Click method
-And paste this code in Click Method
void clicked()
{
    VendTrans   _ppt;
    str             inv;
    int             rec;
    dialog          dlg;
    dialogField     fldRemitanceNumber;
    dialogButton    db;
    super();
    dlg = new dialog("Update Remitance Number");
    fldRemitanceNumber = dlg.addField( TypeID(BankRemittanceFileId), "Update Remitance Number :");
    if (dlg.run())
    {
        db = box::yesNo("Do you really want to update?",DialogButton::No,"Remitance Number is Update");
        if (db == DialogButton::Yes)
        {
            ttsbegin;
            VendTrans.BankRemittanceFileId = fldRemitanceNumber.value();
            VendTrans.update();
            ttscommit;
        }
        info("Remitance Number is Update");
    }
}
-Here is Blank Remittance Number Show in Vendor Transaction Grid
-Click Add Remittance Number Button, it will show a Dialogue Box number
-Remittance Number has been updates
BE a part of My Network:
Thanks
& Regards,
Rizwan Ahmed
Software Engineer And Microsoft Dynamics Technical Consultant
Cell Phone:+92 332 3588699
GTalk|LinkedIn|Twitter|Facebook|Blog|Skype
Rizwan Ahmed
Software Engineer And Microsoft Dynamics Technical Consultant
Cell Phone:+92 332 3588699
GTalk|LinkedIn|Twitter|Facebook|Blog|Skype





I really like the updates here.
ReplyDelete