Select Link to File from within Navision

JanV
Member Posts: 34
Hello together,
I'm sure all of you know the HYPERLINK-Function in Navision using which you can link a file in Navision.
Now, what we want to do is quite similar, but we don't want our users to have copy an paste the whole path, filename, etc. into our hyperlink-fielf but to select the file they want to link using a window. Is this possible? Any suggestions?
regards Jan
I'm sure all of you know the HYPERLINK-Function in Navision using which you can link a file in Navision.
Now, what we want to do is quite similar, but we don't want our users to have copy an paste the whole path, filename, etc. into our hyperlink-fielf but to select the file they want to link using a window. Is this possible? Any suggestions?
regards Jan
0
Comments
-
Hi,
If I understand you right here, you can use the codeunit 'Common Dialog Management'
Ex.VAR: CommonDialogMgt, Codeunit - Common Dialog Management HYPERLINK(CommonDialogMgt.OpenFile('Open file','',1,'*.*',0));
If you enter this in OnPush on a button, the user can select a file, and then it opens.0 -
Hi,
thanks, but that's not what I'm searching for, I'll try to be more specific.
We've got this field, let's call it "Further Informations", in this field you can copy and paste the link to (for example) a PowerPoint-Presentation.
Basicly this is a cool function as it gives our Users the possibillity to link to nearly any file they want.
But now we want let our User search for the file they want to link by a Window, when they found it they should press "OK" and then the link to the file should be stored in the field named above.0 -
Ok, but I think you can still use the 'Common Dialog Management', because it returns the full path to the file they selects as a Text. Try something like this:
"Further Informations" := CommonDialogMgt.OpenFile('Select file','',1,'*.*',0);
(You can use this on the OnAssistEdit() on the field)0 -
Works perfect! 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