How to use codeunit 412

LeoNav
Member Posts: 55
Hello, 
I need to have a control helping me to select a file on a form. So, I decided to use the codeunit 412 Common Dialog Management.
But I can't make it work correctly.
For the moment, I have a simple textbox. Here is the code I use :
CodeUnit412 variable has the type Codeunit. Is it correct ?
I don't know what type the content variable must have.
I know there are 5 parameters to set up with this CU but I don't know what those parametters must look like. What is the window title ? etc.
Can you give me documentation on this CU or a concrete example on how to use it please ?
Thanks.

I need to have a control helping me to select a file on a form. So, I decided to use the codeunit 412 Common Dialog Management.
But I can't make it work correctly.
For the moment, I have a simple textbox. Here is the code I use :
CodeUnit412 variable has the type Codeunit. Is it correct ?
I don't know what type the content variable must have.
Content:= CodeUnit412.OpenFile(WindowTitle,DefaultFileName,DefaultFileType,FilterString,Action)
I know there are 5 parameters to set up with this CU but I don't know what those parametters must look like. What is the window title ? etc.
Can you give me documentation on this CU or a concrete example on how to use it please ?
Thanks.

0
Answers
-
Have a look at the request form of report 81. The OnAssistEdit-trigger of the variable FileName contains this line of code:
FileName := CommonDialogMgt.OpenFile(Text006,'',2,'',0);
with the variables
FileName: Text
CommonDialgoMgt: Codeunit "Common Dialog Management"
Text006: Text Constant containing "Import Excel File"No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
Ok perfect. It works fine now !!
Thanks.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