Archive for February 2, 2013

Free Developing for Dynamics GP Book by MVP Leslie Vail (2 copies only!)

I have a couple of free e-copies of MVP Leslie Vail’s red hot Developing Microsoft Dynamics GP Business Applications book to give away. As I wrote earlier – this book is a must have reference for everybody who is involved with any of the following  –

  • Developing small customizations for Dynamics GP
  • Developing applications for Dynamics GP
  • Administering Dynamics GP

If you are interested in a copy – just post in a comment below by voting for your favourite Dynamics GP resource (or resources) on the internet. I’ll pick two random winners, and also announce the results of the poll on Feb 11, 2013.

clip_image002

 

Here are some options to begin with, but feel free to put in choices outside this list. In order of how often I personally use the resources

The blogs

The forums / resource

Naturally, the list above is not exhaustive.

David Musgrave maintains a more complete listing at http://blogs.msdn.com/b/developingfordynamicsgp/archive/2008/09/30/microsoft-dynamics-gp-blogs.aspx

Read this article:
Free Developing for Dynamics GP Book by MVP Leslie Vail (2 copies only!)

February 2, 2013 · Jivtesh Singh · No Comments
Tags: , , , , , , ,  · Posted in: Blogs I Follow Total Views: 252

Posting multiple batches with a macro

In a recent forum post, a GP user wanted to use a macro to post multiple batches using the Purchasing Batch Entry window. Sounds easy enough, but wait!

The macro worked fine for posting a single batch, but when the second batch was added, the macro always failed. The reason for the failure is that a Progress window pops up each time you post a Purchasing Batch. The Progress window is shown below:

progress window

In order to solve this problem, you need to account for the opening of this window in your macro. When you record a macro during posting, the macro system does not record it correctly. Below is a comparison of the right way and the way the macro system records it.

The RIGHT way:
NewActiveWin dictionary ‘default’  form ‘Progress_Control’ window ‘Progress_Window’

The WRONG way:
ActivateWindow dictionary ‘default’  form ‘Progress_Control’ window ‘Progress_Window’

The complete macro to post two batches in a row is below.

Until next post!

 

Here’s the macro.

Each command should be on a single line, it should not wrap.

CommandExec dictionary ‘default’ form ‘Command_Purchasing’ command ‘POP_Batch_Entry’
NewActiveWin dictionary ‘default’ form ‘POP_Batch_Entry’ window ‘POP_Batch_Entry’

#!BATCH POSTING 1

NewActiveWin dictionary ‘default’ form ‘POP_Batch_Entry’ window ‘POP_Batch_Entry’
ActivateWindow dictionary ‘default’ form ‘POP_Batch_Entry’ window ‘POP_Batch_Entry’
TypeTo field ‘Batch Number’ , ‘BATCH_NUMBER_1′
  MoveTo field Origin item 0
  ClickHit field Origin item 1 # ‘Receivings Trx Entry’
MoveTo field ‘Batch Comment’
  MoveTo field ‘Post Button’
  ClickHit field ‘Post Button’
NewActiveWin dictionary ‘default’  form ‘Progress_Control’ window ‘Progress_Window’
NewActiveWin dictionary ‘default’  form ‘POP_Batch_Entry’ window ‘POP_Batch_Entry’

#!BATCH POSTING 2

TypeTo field ‘Batch Number’ , ‘BATCH_NUMBER_2′
  MoveTo field Origin item 0
  ClickHit field Origin item 1 # ‘Receivings Trx Entry’
MoveTo field ‘Batch Comment’
  MoveTo field ‘Post Button’
  ClickHit field ‘Post Button’
NewActiveWin dictionary ‘default’  form ‘Progress_Control’ window ‘Progress_Window’
NewActiveWin dictionary ‘default’  form ‘POP_Batch_Entry’ window ‘POP_Batch_Entry’

#!CLOSE AND END

CloseWindow dictionary ‘default’ form ‘POP_Batch_Entry’ window ‘POP_Batch_Entry’
NewActiveWin dictionary ‘default’ form sheLL window sheLL
CommandExec form BuiLtin command cmdQuitApplication

More here:
Posting multiple batches with a macro

February 2, 2013 · Leslie Vail · No Comments
Tags: , , , , , , , ,  · Posted in: Blogs I Follow Total Views: 246