Form.RunModal

aka_USAPA
Member Posts: 62
I'm trying to pass a variable to an object. I'm using a form to input data. I have a form variable and the actual command is:
if FORM.RUNMODAL = ACTION::OK THEN BEGIN
...
END;
I know there is a command you have to issue so that Navision will automatically put an OK button on the form. Does anybody know the command and syntax? Please let me know. Thanks.
if FORM.RUNMODAL = ACTION::OK THEN BEGIN
...
END;
I know there is a command you have to issue so that Navision will automatically put an OK button on the form. Does anybody know the command and syntax? Please let me know. Thanks.
Another way: http://yourfuture.myshaklee.com
0
Comments
-
hi,
there r two way to lookup a form
first is define table relation property of field another is write code onlookup trigger on that field like:-
IF FORM.RUNMODAL(FORM::FORMNAME,FIRELDNAME)=ACTION::LookupOK THEN
FIELD := FORM.FIELD;
is second case form will automatically show ok,cancal button.
for more detail see
viewtopic.php?f=23&t=38328&hilit=runmodal0 -
Indeed and of course you need to be sure that the form does have OK/Cancel buttons.
In case it is a list form (Tabular-Type) it will get it by default when using the Form wizard.
In case it's a card form the wizard will not assign the OK/Cancel buttons. You will have to put them on the form yourself. The best and simplest way to do this is to copy them from another form and paste them on your (card) form. This way all properties of the the buttons are set right.0 -
[Topic moved from 'NAV 2009' forum to 'NAV/Navision' forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
lvanvugt wrote:Indeed and of course you need to be sure that the form does have OK/Cancel buttons.
In case it is a list form (Tabular-Type) it will get it by default when using the Form wizard.
In case it's a card form the wizard will not assign the OK/Cancel buttons. You will have to put them on the form yourself. The best and simplest way to do this is to copy them from another form and paste them on your (card) form. This way all properties of the the buttons are set right.
Can somebody provide me an example or a Form ID?
BTW - I know it's a command you can issue but it's been a while since I've done it and I've forgotten it.Another way: http://yourfuture.myshaklee.com0 -
An example of (1) a list form is the Customer List (2) card form is the Customer Card. Open them in design m ode (from f.e. Object Designer). You will see that the first does have OK/Cancel buttons while the second has none of these.
If your form (activated by your From.RunModal) does not have OK/Cancel buttons - and seems to me that's the case) you need to put them on your for like I explained before.
Hope this makes sense.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