Question about var.runmodal & form.runmodal

kuloicat
Member Posts: 9
I find a question about run and runmodal
I know what's different between run and runmodal
but I don't know what is the different between followings
1.Create variable type form and code : VAR.RUNMODAL
2.FORM.RUNMODAL(formID)
any idea? thanks
I know what's different between run and runmodal
but I don't know what is the different between followings
1.Create variable type form and code : VAR.RUNMODAL
2.FORM.RUNMODAL(formID)
any idea? thanks
0
Comments
-
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...0
-
thanks kine0
-
PS, Same goes for report, dataport and codeunit. 8)0
-
Codeunits can only be run with CODEUNIT.RUN(id,[rec]) or variableCU.RUN([rec]).--
Tom0 -
-
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.0
-
dblaisdell wrote: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 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!0 -
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 correct0 -
dblaisdell wrote: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!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions