batch processing in Axapta 3

Get our Free Newletter

Don't you have the time to be online here at DUG every day? So how do you follow what is going on in the Dynamics industry and community?
If you subscribe to the DUG Newsletter then you can relax! We will make sure that you don't miss the big news!

Check out our
Newsletter Subscription Center
page a complete list of our different newsletters.

This post has 5 Replies | 0 Followers

Not Ranked
Posts 8
55 Points
Joined: May 30, 2006
Last Online:
Feb 9, 2010 23:49
morenews1 Posted: May 31, 2006 7:28
How helpful was this post/question? Please rate here:

Hi, guys

I have 2 questions actually.

I tried to use class: Tutorial_RunBaseBatch to schedule batch.

I wrote some simple insert to a created by me table ---on run method of this class. I tested my code, without batch, it works fine and inserts records.

Then i used batch tab of this class to schedule a batch, and after i clicked ok, it gave me a message that my jot is added into batch que.

But after that nothing happens, no inserts were performed. What did i miss?

Also when you open class: Tutorial_RunBaseBatch class, it opens dialog with certain fields. I can not figure out how to control which fields are appearing in this dialog. If i want to use copy of this class, but have my own controls/fields there.

This is my second question, how to change controls on this dialog.

thank you

Top 150 Contributor
Male
Posts 168
1,210 Points
Joined: Nov 5, 2004
Last Online:
Mar 20, 2010 16:58
Location: Melbourne, Australia
Khue Trinh replied on May 31, 2006 10:48
How helpful was this comment/solution? Please rate here:

Hi,

Q1: I think you can try to play around with the functions under, I don't have Axapta here, so just try:

- BASIC>PERIODIC>BATCH

- BASIC>SET UP>BATCH.

Q2: Adding controls to the class, you may want to look into the method dialog(), getfromdialog()...

For the Batch Processing, you can download a good example from MSDN of Microsoft. Just go to MSDN page and serach for "Axapta" keyword.

Hope this help

Regards, Khue Trinh
Top 75 Contributor
Male
Posts 253
1,900 Points
Joined: Mar 23, 2005
Last Online:
Feb 18, 2010 13:43
Location: Copenhagen, Denmark
Kashperuk Ivan replied on May 31, 2006 11:05
How helpful was this comment/solution? Please rate here:
First of All, instead of modifying the Tutorial_RunBaseBatch class, you should create your own, which extends RunBaseBatch. Then, you should read about the RunBase, RunBaseBatch and RunBaseReport classes in the Developers Guide The fields that are shown on the dialog, are added in the dialog method, which you have to override in your newly created class. The Batch tab appears, if the method canGoBatchJournal() is overridden and the return value of this method is set to True; Also look at the getFromDialog() method - this is where you read the values from your dialog. pack() and unpack() save and get the values the user inserted into the dialog controls the previous time the class was run. Also, the CurrentList local macro in the classDeclaration of your class should be updated to include all the variable names, the values of which you want to save About the first problem - it's hard to tell, what the problem is - but it might get solved after you figure out all the RunBase* methods. Good luck
Top 25 Contributor
Male
Posts 749
8,199 Points
Joined: Jan 21, 2003
Last Online:
Mar 19, 2010 11:43
Location: Herts, England
DynamicsAXMVP
Moderator
Harish Mohanbabu replied on Jun 1, 2006 3:53
How helpful was this comment/solution? Please rate here:

Hi,

For more info, you might want to refer to this MSDN article -

http://msdn.microsoft.com/mbs/default.aspx?pull=/library/en-us/dnaxap/html/axp_perprocessingp1.asp

Regards,

Harish Mohanbabu
Long way to go before I sleep ..

View Harish Mohanbabu's profile on LinkedIn

Not Ranked
Posts 8
55 Points
Joined: May 30, 2006
Last Online:
Feb 9, 2010 23:49
morenews1 replied on Jun 1, 2006 7:26
How helpful was this comment/solution? Please rate here:

hi, guys

thank you for advices and article....will be trying those things now.

thank you again.

Not Ranked
Posts 8
55 Points
Joined: May 30, 2006
Last Online:
Feb 9, 2010 23:49
morenews1 replied on Jun 29, 2006 10:43
How helpful was this comment/solution? Please rate here:

thank you again, this article really helped.

Also what is important after all code writing, to really start the batch thru main manu.

thank you again.

Page 1 of 1 (6 items) | Get this RSS feed | Bookmark and Share