Adding a File Requst to a Textbox on the Report Request Page

Matt.Hill
Member Posts: 32
Does anyone know if it is possible to have filename request functionality to a Textbox shown on the request form when processing a report (as the user has the option to export as CSV). At present the user will have to have a knowledge of direcotry structure to be able to use it - it is safe to assume that the end user will have no such knowledge.
I've tried the suggestion for when using "dataports and the request dissapears", but this does not work! All I have now are assist edit dots that do nothing!
Thanks!
I've tried the suggestion for when using "dataports and the request dissapears", but this does not work! All I have now are assist edit dots that do nothing!
Thanks!
0
Comments
-
Hi,
I don't get the "dataports and the request dissapears" comment...
If you want to have a text box that a user can enter a path and a filename for you to save the report, you should create two vars:afilename Text aDlg OCX Microsoft Common Dialog Control, version 6.0
Place a textbox on the request form, make AssistEdit=Yes in its properties, select it with the mouse, press F9 to view the code and in the OnAssistEdit trigger place the code:WITH aDlg do BEGIN DialogTitle := 'title of your dialog'; Filter := 'file type1 (*.OUT)|*.out|file type2 (*.txt)|*.txt|all files (*.*)|*.*'; ShowOpen; IF FileName <> '' THEN afilename := FileName; END;
In case of 'Design Time License' of the comdlg32.ocx you should look at:
http://support.microsoft.com/kb/q318597/0 -
Hi,
I saw the post in mbsonline about the 29 Export Acc. Sched. to Excel implementation. Using the Common Dialog Management codeunit would be much better.
Its the same without having to do it yourself!!0 -
Thanks to all - the second idea did the trick, as the first one failed with the missing licence error....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