jeudi 27 janvier 2011

How to create a specified field in a grid from X++

Create a method display in the DataSource TmpvendTable of your form and use this code for example:

Display string30 VendAccount(tmpvendtable v = tmpvendtable)
{
 
      VendTable             VendTable;
      string30        VendAccountExt;
      ;
 
      VendAccountExt = v.AccountNum + "aa";
      return VendAccountExt;
}

Then in the proprities of the filed set this method as a DataMethod.

Happy Daxing!

Aucun commentaire:

Enregistrer un commentaire