Quick Tip: Debugging Visual Studio Tools – Developing For Dynamics GP


Awesome tip up there on Developing For Dynamics GP blog on how to debug VS Tools For Dynamics GP.

I am late in blogging about this post. But NOW is the time, as this post just saved my 1/2 day. Seriously. Not kidding. I was stuck with one SQL query execution. There were records to be retrieved, but my code didn’t. After 5-10mins of frustrated troubleshooting, I remembered this post. I should have done that immediately then, but I didn’t.

I setup my VS Tools project to launch GP as instructed on this post and within 2 minutes I could find the issue.

This one deserves to be there on Microsoft Dynamics GP Cookbook (technical).

VAIDY

Advertisement

Caps Lock Reminder – For Microsoft Dynamics GP 2013


I had developed a small customisation module which would alert users while logging on to Dynamics GP with CapsLock key on. You can read more about it here: GP Login Form – Caps Lock Reminder Update.

That customisation was developed using Modifier with VBA. But with Dynamics GP 2013, much emphasis has been given to the new Web Client. Which means, all our VBA code logic won’t be supported by web client.

That said, I have now converted my code from VBA to VS Tools (using C#.Net as programming language). Those who are interested can download it FOR FREE from following link:

CapsLockMessage-12.0.0.1.dll

Instructions to use:

  1. Copy this DLL file and paste it on to GP AddIns folder (can be located inside GP 2013 application folder).
  2. Ask users to log out and log on back.
  3. If you do not need this tool anymore, just remove this DLL from AddIns folder, after all users log out.
  4. This can be used safely in production environment. This tool doesn’t interfere in any of your day-to-day transactional activities. The scope of this is restricted only to GP login form.

Your feedback is always welcome.

VAIDY

Visual Studio Tools for Dynamics GP – A Weird Flaw/Limitation


I must first admit that I faced this issue (or may be flaw…!?!?!?!) only now after all these years of VS Tools development expertise.

The issue is this: I want to write a custom code on two events; SOP Entry Print Button and POP Entry Print Button. When I initialise the event method for SOP Entry Print Button, following is how it generates the code:

Snip20130221_4

And the event method gets created as follows (if you use TAB to create the methods automatically):

Snip20130221_5

After above, when I try to initialise an event method for POP Entry Print Button, following is how it generates the code:

Snip20130221_6

When you try to press TAB to create the event method automatically, it takes you to previously created method.

Because, print buttons on both windows (SOP Entry & PO Entry) have same name technically, which is WindowPrint, VS Tools doesn’t understand both are from different windows and it just goes on to refer to one single method instead of two.

But you are not stuck there forever. Simple solution is to manually name your method initialisation with logical names, like below:

Snip20130221_7

And like below:

Snip20130221_8

Visual Studio Tools for Dynamics GP does not restrict you from using only names that it suggest.

VAIDY

OFF-TOPIC: Snip For Mac OS X – A Snipping Tool Alternative


This is another off-topic. But I wanted to highlight this most handy application called Snip, developed by Tencent Technology (Shenzhen) Company Limited and is also available on Mac App Store.

Snip20130209_1

Those PC users, who also used to be Snipping Tool dependants, and then became Mac OS user, would love to have an application in Mac OS X which would compensate Snipping Tool’s absence.

I used to crib about the lack of an application that I would use to do screen capturing and post-processing those captures. This tool Snip, which I came to know very recently, has done what other applications on Mac platform couldn’t.

We have built-in capturing commands in Mac OS X, such as SHIFT+CMD+4 (to capture a portion of screen), but those commands would simply take the screenshot and immediately save it on your desktop. You then have to reopen it on some other graphics tool to post-process it, such as narrating or simply painting on some text which you do not want to show to others.

This tool is amazingly simple and does exactly what you need. It just sits on that menu bar with a customisable keyboard shortcut to invoke a screen capture.

Go to the official website (link is provided in the beginning of this post) and know more about it.

Trust me, you would most certainly fall in love with this application, if you do tons of screen capturing on your day-to-day Mac OS usage.

UPDATE: There is one more app that is FREE on Mac App Store; named Share Bucket. I think it’s a serious competitor for all currently available apps.

VAIDY