Select Box in window.open

FlensGold
Member Posts: 2
Hello,
I am new to this forum just as I am new to NAV as well.
I am familiar with coding, thats not the point, but sometimes NAV works a bit different then I expected.
Right now I have a form where the user can enter several information. Behind one field I would like to open a window (triggered in "OnAfterValidate") if the user enters specific information. In that case this "Popup" Window should include a select Box offering the user 3 options. How can I handle this in NAV? Using window.open creates such a popup window.
If I would use window.input the user could enter information, but that is not what I am looking for. I would like to offer him 3 options and then continue with the selection.
I would appreciate any help. I already tried the search and google, but I assume I used the wrong search parameter?
Kind regards
Edit:
After posting this I tested around and found out, that I was on the wrong path.
I assume the correct way should be the DIALOG.STRMENU.
I achieved in getting the Select Box, just trying to deal with the result
Edit 2:
Got it, just for completion:
Options := 'A,B,C,D';
// Sets the default to option 3
Selected := Dialog.STRMENU(Options, 3, 'Please choose:');
MESSAGE('You selected option', Selected);
I am new to this forum just as I am new to NAV as well.
I am familiar with coding, thats not the point, but sometimes NAV works a bit different then I expected.
Right now I have a form where the user can enter several information. Behind one field I would like to open a window (triggered in "OnAfterValidate") if the user enters specific information. In that case this "Popup" Window should include a select Box offering the user 3 options. How can I handle this in NAV? Using window.open creates such a popup window.
If I would use window.input the user could enter information, but that is not what I am looking for. I would like to offer him 3 options and then continue with the selection.
I would appreciate any help. I already tried the search and google, but I assume I used the wrong search parameter?
Kind regards
Edit:
After posting this I tested around and found out, that I was on the wrong path.
I assume the correct way should be the DIALOG.STRMENU.
I achieved in getting the Select Box, just trying to deal with the result

Edit 2:
Got it, just for completion:
Options := 'A,B,C,D';
// Sets the default to option 3
Selected := Dialog.STRMENU(Options, 3, 'Please choose:');
MESSAGE('You selected option', Selected);
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