How to implement opening Link form

gerba
Member Posts: 37
Hi all!
I have to create a button in a Form, that does the same, as the paperclip in the toolbar: Open the Links form.
I see two possibities:
a) Implement the same as the paperclip does -> question: how can I find out, what it does?
b) Using SendKey needing the WShell Object (not very good)
Questions:
1. How would you resolve that?
2. Which form is being opened, when clicking the paperclip?
Thx for any hint!
Gerald
I have to create a button in a Form, that does the same, as the paperclip in the toolbar: Open the Links form.
I see two possibities:
a) Implement the same as the paperclip does -> question: how can I find out, what it does?
b) Using SendKey needing the WShell Object (not very good)
Questions:
1. How would you resolve that?
2. Which form is being opened, when clicking the paperclip?
Thx for any hint!
Gerald
0
Answers
-
Hi Gerald,
Why not use the link as is - two clicks?
how will you know which link file to use?
If you need it down to one click then find the link and use the HYPERLINK command0 -
checkt Table 2000000068 "Record Link" and the Online Help for this Table.
RegardsDo you make it right, it works too!0 -
Hi all!
I decided to send 'Ctrl+L':
viewtopic.php?p=136083#p136083
Creating a new form does not work, as you'd have to filter on the field 'Record ID' in table 'Record Link' - this is not possible.
Thanks for your help
Gerald0 -
Sure it is possible to filter on the Record ID field. Just use a RecordRef and something like this:
RecLink.SETFILTER("Record ID",FORMAT(RecRef.RECORDID));0 -
@administrator:
Please remove this post!!!
Hi!
My code:contactRecRef.OPEN(DATABASE::Contact); contactRecRef.SETPOSITION(STRSUBSTNO('No.=const(%1)',"No.")); recordLink.SETFILTER("Record ID",FORMAT(contactRecRef.RECORDID)); MESSAGE(FORMAT(recordLink.COUNT));
The message shows 0, although there IS a link attached to the current contact.
If I deactivate the third line (SETFILTER), the message shows the number of all records in the table 'Record Link'.
What's wrong?0 -
Thank you!
That's it!
Gerald0 -
gerba wrote:I decided to send 'Ctrl+L':
http://www.mibuso.com/forum/viewtopic.p ... 83#p136083
Me too. :-)
WSHShell.SendKeys('^'+'l'); did the trick.
Tino Ruijs
Microsoft Dynamics NAV specialist0
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