Access Fields In A Table Using This Field Id

 




How To Access Field In A Table Using This Field Id

To do this you could use the next construction:

vendTable.( filednum( vendTable, VendAccount ) ) = “XXX”;

This is the same as

vendTable.VendAccount = “XXX”;

Example:

Field VendAccount from VendTable has id 1. Then statement VendTable.(1) = “V-00014” – will initialize field VendAccount with value “V-00014”.

You could also use this feature while working with records of type Common.

Example:

    Common      common;
    VendTable    vendTable;
    ;
    select vendTablewhere vendTable.VendAccount== "V-00014";
common = vendTable;
info( common.( fieldnum( vendTable
, VATNum) ) );


Support Faryal's Cusine


1 comment:

  1. hello guys i just got a successful bank transfer of $50,000 from darkwebonlinehackers.com THEY ARE VERY LEGIT AND RELIABLE TO DEAL WITH. YOU CAN CONTACT THEM NOW THROUGH THEIR

    Email: darkwebonlinehackers@gmail.com

    Text & Call or WhatsApp: +18033921735

    Website: https://darkwebonlinehackers.com

    ReplyDelete

Virtual Fields Vs Computed Fields

  Virtual Field: A virtual field in D365FO is a field that doesn't have a direct representation in the database. It's a field that y...