how we can make a field empty ex: starting date when we created a job from copying job
how we can make a field empty ex: starting date when we created a job from copying job
Thank you all issue solved
Hi,
Please show your Action button's code how you did it
Thanks.
Thank you for the reply.
but what I am looking is a for a new created job some fields need to empty
which has values in the original job.
I have modified the action but I am still getting the same value in the original field.
you have to subscribe to OnAfterCopyJob publisher of Copy Job codeunit like below
[EventSubscriber(ObjectType::Codeunit, Codeunit::"Copy Job", 'OnAfterCopyJob', '', false, false)]
local procedure OnAfterCopyJob(var TargetJob: Record Job; SourceJob: Record Job);
begin
TargetJob."Starting Date" := 0D;
end;
Hi,
If you want to pass the <Blank> value to your starting date field.
"Starting Date" := 0D
Thanks.
Hi,
Write code on Copy Job button for blank the Start Date field.
Regards
Amit Sharma
www.erpconsultors.com
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal...
288,584
Super User
Martin Dráb
225,864
Super User
nmaenpaa
101,148