Quantcast
Channel: Dynamics User Group
Viewing all articles
Browse latest Browse all 15740

How can i Update an Enum Colum on a table with code?

$
0
0

Hi, I'am trying something like this:

 

static void PalletInvoicingTable(Args _args)
{

    PalletInvoicingTable palletInvoicingTable;
    CustFreighter            custFreighter;
   

 

            while select forupdate palletInvoicingTable
            where   (palletInvoicingTable.CustFreighter == EcustFreighter::Cust)


            ttsbegin;

            palletInvoicingTable.CustFreighter = ECustFreighter::Freighter;
            palletInvoicingTable.update();
            ttscommit;
 }

 

I have in the palletInvocingTable some values (over 10 000) with value "Cust" and i want to chance them into "Freighter"


Viewing all articles
Browse latest Browse all 15740

Trending Articles