Browse through form displaying files of different types

jensthomsen
Member Posts: 173
Well, I hope I can explain my problem in an understandable way...
Heres the deal:
I have a form displaying different files including paths like this:
c:\temp\file1.pdf
c:\temp\file2.txt
c:\temp\file3.docx
Now I want the following fuctionality: When activating a record (say 'c:\temp\file1.pdf') the file is opened with the right program/prompted for choosing a program. When choosing another record, the previously openede program+file is being closed, and the current file is being opened. And so on.
Does anyone knows wether this is possible without using strange automations?
Heres the deal:
I have a form displaying different files including paths like this:
c:\temp\file1.pdf
c:\temp\file2.txt
c:\temp\file3.docx
Now I want the following fuctionality: When activating a record (say 'c:\temp\file1.pdf') the file is opened with the right program/prompted for choosing a program. When choosing another record, the previously openede program+file is being closed, and the current file is being opened. And so on.
Does anyone knows wether this is possible without using strange automations?
0
Comments
-
Try This viewtopic.php?f=23&t=23783
It looks like this - where you can add a name & a path.
http://savatage99.googlepages.com/Cryst ... anksDe.doc
The path uses common dialog for easy finding & saving. Click open to open the file in it's approriate program with the Hyperlink functionalityin addition, so you don't have to manually type in the PATH just add
Variable=CommonDlgMgt=type codeunit #412
add to the On AssistEdit of the Path Field on the FORM!
Path := CommonDlgMgt.OpenFile( FIELDCAPTION( Path), Path, 4, '*.*', 0);
Thanks to Denster for the suggestion from this post. (2nd half)
viewtopic.php?f=14&t=23298
i can simplify the explanation if you need it.0 -
Hello Savage
Yes, its something like that I'm looking for, just a bit more automatic. I wan't the file to open and close when moving from record to record on the form (that is some code on "Form - OnActivateForm()"/"Form - OnDeActivateForm()"). But I'm not sure if is possible to close the open-file window from Navision, the "Common Dialog Management" codeunit only gives you function to open not closing??0 -
There is no way to close the file from Navision that I know of. Not without building something very complicated anyway.0
-
as above says that would be something that would be a project if it can even be done.
Clicking the red "X" to close is just something you might have to live with and it's not that big of a deal0
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