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
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
Can you share this idea?
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
What he's trying to do there can be done indirectly, but it involves some messing and isn't worth it in a case such as this.
In open box you type www.google.com. In caption you type google
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
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
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I hope you mean Live Search?
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
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:
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.
Yes, it's what I have mainly used it for before.