Codeunits on the NAV panel
Demonic240
Member Posts: 65
Is there a way for me to test the caption value of a codeunit within itself when run? What I'm trying to do is make one code unit that has a list of websites and hyperlinks and put it at different places on the NAV menu. I want to use different captions to determine which hyperlink is to be run so that i don't have to waste a bunch of codeunits.
0
Comments
-
Can't be done.0
-
Thanks. I actually found a way to create shortcuts in the Menu Panel which link to websites. It's exactly what I need.0
-
A way around is to create a report that runs these codeunits.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
Demonic240 wrote:Thanks. I actually found a way to create shortcuts in the Menu Panel which link to websites. It's exactly what I need.
Can you share this idea?0 -
in shortcut, you right click and select create shortcut.
In open box you type www.google.com. In caption you type google0 -
Waldo wrote:Demonic240 wrote:Thanks. I actually found a way to create shortcuts in the Menu Panel which link to websites. It's exactly what I need.
Can you share this idea?
I would guess that he's refering to the old ShortcutURL property trick. Although the Menu Suite designer doesn't allow you to create them, it does allow you to edit them if they are there. You have to add them by exporting the menu suite as a text file, adding the property there, and then editing it in the Menu Suite designer. I've used this trick many times before.
http://dynamicsuser.net/forums/p/12771/61728.aspx#617280 -
That's a great trick to handle forms with different filters.0
-
ara3n wrote:in shortcut, you right click and select create shortcut.
In open box you type www.google.com. In caption you type google
I hope you mean Live Search?
0 -
MTC wrote:Waldo wrote:Demonic240 wrote:Thanks. I actually found a way to create shortcuts in the Menu Panel which link to websites. It's exactly what I need.
Can you share this idea?
I would guess that he's refering to the old ShortcutURL property trick. Although the Menu Suite designer doesn't allow you to create them, it does allow you to edit them if they are there. You have to add them by exporting the menu suite as a text file, adding the property there, and then editing it in the Menu Suite designer. I've used this trick many times before.
http://dynamicsuser.net/forums/p/12771/61728.aspx#61728
That's exactly what i did. I just modified it a little bit to work for me and it works great.
To ara3m: Yes you can add them directly to the shortcut Tab but you can't copy them over to the other tabs for all users to see. You have to export it as a text file and find the last item on the tab. My code looks like this:{ MenuShortcut ;[{F75D585D-0200-4CBA-AA93-8D0FDDBB42FC}] ;Name=Google; CaptionML=PLK=Google; MemberOfMenu=[{09D0CC08-3690-4E5B-A869-D891F3AF061F}]; ParentNodeID=[{09D0CC08-3690-4E5B-A869-D891F3AF061F}]; ShortcutURL=Http://www.Google.com; Visible=Yes; NextNodeID=[{00000000-0000-0000-0000-000000000000}] }
Once you get that in the text file you can import it back, compile it, and then you are free to copy the shortcuts to any other tab on the NAV panel.
*Note: The shortcut doesn't work initially, you have to edit it to make it work.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

