How can i get my table filled automatically when i gave id from another table in ax 2009

100 Views Asked by At

I have a two tables in first table i filled the values with name id,

on second table if i gave the id the table needs to fill the name automatically, how can i do this please help.

1

There are 1 best solutions below

9
On BEST ANSWER

You commented that the error is in the following line:

axsl.TransDate = DateTimeUtil::utcNow();

This is logic because axsl.TransDate is Date and DateTimeUtil::utcNow() return a UtcDateTime when you compile get this error Operand types are not compatible with the operator.

There are many ways to fix this error.

Try this:

axsl.TransDate = DateTimeUtil::date(DateTimeUtil::utcNow())

DateTimeUtil::date() convert UtcDateTime in Date.

or you can use today() method to return the actual date.