Hi,
I started a new job as a AX Programmer and i have a lot of questions which aren’t exactly answered in web…
My first task is to create a class/job which update a lot of tables from hardcode data…
What are the differences between this four part of code… Because in my develop instance all works perfectly
1
static void Job(Args _args)
{
ARP_HD_Books book;
book.AuthorFirstName = “FIRSTNAME”;
book.insert();
}
2
static void Job(Args _args)
{
ARP_HD_Books book;
select book;
book.AuthorFirstName = “FIRSTNAME”;
book.insert();
}
3
static void Job(Args _args)
{
ARP_HD_Books book;
select forUpdate book;
book.AuthorFirstName = “FIRSTNAME”;
book.insert();
}
4
static void Job(Args _args)
{
ARP_HD_Books book;
ttsBegin;
select forUpdate book;
book.AuthorFirstName = “FIRSTNAME”;
book.insert();
ttsCommit;
}