in case of Var.RUNMODAL, you can call functions of the form, you have still the state of the form in memory (the form global variables are existing, have the value etc.)... if you call only FORM.RUNMODAl you have only return value and no access to the functions of the form etc...
I do not understand the differences between RUN & RUNMODAL. I know there are question on the exam and I am taking it in 2 days. Can someone please explain this to me and under what circumstances each would be used.
I do not understand the differences between RUN & RUNMODAL. I know there are question on the exam and I am taking it in 2 days. Can someone please explain this to me and under what circumstances each would be used.
If you use RUN, you can work in the object from where you run it.
if you use RUNMODAL, you CANNOT work in the object from where you run it. First you have to close the object you just run.
So if you want that the user FIRST closes the object you just run, before continuing on the original object, you must use RUNMODAL. (e.g. use it for lookupforms)
Regards,Alain Krikilion No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
If you want to run a form and the user information will be used for futher processing back in the calling object, what code is correct?
a) variableform.RUNMODAL.
b) variableform.RUN.
c) FORM.RUN(FORM::Form_Name,rec).
d) FORM.RUNMODAL(FORM::Form_Name,rec). Is d correct
If you want to run a form and the user information will be used for futher processing back in the calling object, what code is correct?
a) variableform.RUNMODAL.
b) variableform.RUN.
c) FORM.RUN(FORM::Form_Name,rec).
d) FORM.RUNMODAL(FORM::Form_Name,rec). Is d correct
This question means the form is used as a lookupform to select a value from another table to be used in current table.
The MS/Navision answer is d) because in "rec" is the record the user selected.
In reality also a) would be correct because you can get back the value you need. And sometimes you will need a) because d) is not good enough. (e.g. you want to send some information into the form you want to call)
Regards,Alain Krikilion No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Tom
You are right off course
if you use RUNMODAL, you CANNOT work in the object from where you run it. First you have to close the object you just run.
So if you want that the user FIRST closes the object you just run, before continuing on the original object, you must use RUNMODAL. (e.g. use it for lookupforms)
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
a) variableform.RUNMODAL.
b) variableform.RUN.
c) FORM.RUN(FORM::Form_Name,rec).
d) FORM.RUNMODAL(FORM::Form_Name,rec). Is d correct
This question means the form is used as a lookupform to select a value from another table to be used in current table.
The MS/Navision answer is d) because in "rec" is the record the user selected.
In reality also a) would be correct because you can get back the value you need. And sometimes you will need a) because d) is not good enough. (e.g. you want to send some information into the form you want to call)
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!