Hi community,
I have a question, when I create a new Job, I want use planning for the default and not open job.
could you help me, how i can modify in AL Code?.
Thank you, I will appreciate
I tried to use a trigger, but still does not work
Hi community,
I have a question, when I create a new Job, I want use planning for the default and not open job.
could you help me, how i can modify in AL Code?.
Thank you, I will appreciate
I tried to use a trigger, but still does not work
Inge M. Bruvik
Thank you, this is other way to do it. I appreciated
YUN ZHU
Thank you for helping me, now works perfect
Rather than hard coding the status, it is better to add a field to the Job Setup table for "Default Job Status". This way if you needed it to be something different in the future it wouldn't take a developer to change it. As a non-developer, I can't stand hardcoded development.
Hi, If you only want to run in Job Card, you can try the code below.
But please note whether to use the Validate method, and the code of the Modify trigger needs to be run.
Hope this helps.
Thanks.
ZHU
You can try to use this even on the Job table:
local procedure OnAfterOnInsert(var Job: Record Job; var xJob: Record Job)
begin
end;
And set the status there.
André Arnaud de Cal... 291,391 Super User 2024 Season 2
Martin Dráb 230,445 Most Valuable Professional
nmaenpaa 101,156