Quantcast
Channel: AX Developer Forum
Viewing all articles
Browse latest Browse all 9880

Variable field name in update_recordSet

$
0
0

Is it possible to use a variable to specify which fields to update in a table with the update_recordSet?

 

I have a table with sixty different fields in which all records in specific fields will need to be cleared out each month, but each month, different fields will need to be cleared out.  Can I use a variable to specify which fields?

Something along the lines of:

    str     fieldName

    fieldName = 'JanuaryOnlineSales';

 

    update_recordSet    myTable

    setting

        fieldName = 0;

Is there any way to make something like this work?  It's not recognizing my field name.  I've tried various field conversion functions, but nothings worked so far.  Any suggestions?

 


Viewing all articles
Browse latest Browse all 9880

Trending Articles