Hallo All,
I know, it is possible in NAV to know that, Called Object is Called from which Object.
E.G.
I am doing one Action in FORM 12. Which calls Codeunit X.
Also doing one Action in FORM 13 Which Calls Codeunit X.
My requirement is to write one Condition in Codeunit X that,
If X is Called from FORM 12 then Do TASK1
ELSE IF X is Called from FORM 13 then Do TASK2
But, no idea How to do that?
Any suggestion?
Ravi_Thakkar
Ahmedabad, Gujarat, India
E Mail :
ravi.thakkar@hotmail.com 0
Answers
you can write a code somwthing like,
if form.runmodal(Form::12) then
Codeunit1.run
else if form.runmodal(Form::13) then
Codeunit2.run;
Manish
http://midynav.blogspot.com/ (Microsoft Dynamics Navision)
Purpose solved.
Ahmedabad, Gujarat, India
E Mail : ravi.thakkar@hotmail.com