Use an Option-field in a dialog??
giver
Member Posts: 6
I regulary use dialogs to obtain data from the user. The way I use this is like this:
EntryForm.Open('some Text #1###');
EntryForm.INPUT(1,Var1);
Now I need to obtain the value of an Option-field. I've seen it being used, but can't remember exactly how. I'm not doing these kind of things every day.
Can someone help me a little?
Thanks,
Giver
EntryForm.Open('some Text #1###');
EntryForm.INPUT(1,Var1);
Now I need to obtain the value of an Option-field. I've seen it being used, but can't remember exactly how. I'm not doing these kind of things every day.
Can someone help me a little?
Thanks,
Giver
0
Comments
-
You need to use STRMENU0
-
try a variation of this:
win.OPEN('choose #1################',SlsHdr."Document Type");
win.INPUT(1,SlsHdr."Document Type");
MESSAGE(FORMAT(SlsHdr."Document Type"));
Steve0 -
Thank you both. You helped me a lot.
Steve, do you have a suggestion to get a "OK" button in the dialog?
Giver0 -
For an OK button you need to create a form.
When I use input dialogs I usually add some verbage something like
'Please click enter after selection'0 -
I like the face of this solution, but I'm strugling to get extra text into the dialog pop-up.You need to use STRMENU
This is my code:
OptionField := DIALOG.STRMENU(optiontext);
I only get my option-values shown in the dialog, I would like to get my question also there.
There must also be a possibility to obtain the "OptionText" out of the optionstring of the field. The C/Side Ref Guide only mentiones this text to be programmed as Text-Constant.
Giver0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 333 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 991 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