Hi,
I created a class which inherits from RunBaseBatch.
I have a form which is using my Class.
I implemented all methods from Tutorial_RunBaseBatch and also compared my code to some standard classes and I don't see what is wrong.
When I check button Batch processing seems like it doesn't get affected at all, the process gets run immediately instead of adding job to the batch queue. Any thoughts? Thanks in advance
You said nothing about about any form before, therefore we couldn't take that into account. Now you seem to be saying there is no problem in the class you asked about; you had a bug in the form. In either case, it's great that the problem's been resolved.
By the way, please always use Insert > Code (in the rich formatting view) to paste source code to this forum. It'll prevent the extra space between lines, among other benefits. For example:
public boolean canClose() { boolean canClose = super(); if (canClose && element.closedOk()) { canClose = myClass.checkCloseDialog(); } return canClose; }
I guess because I am used to RunBaseBatach but I will investigate SysOperation
I am getting that notification now after I did what I described oin my last comment
Hi, I assume you are doing this for practice purpose. As Martin mentioned you should explore SysOperation Framework.
Check this out
For runbase batch
For SysOperation Framework
After setting the batch process to yes - Did you got any notification - You will get a notification like "Job is added to the batch queue".
It will be added to Batch jobs on the inquiry form under system administrator. module.
Thanks,
Girish S.
Hi Martin,
In the meantime I did this
Overriden method canClose in my form that I am using as a dialog
public boolean canClose()
{
boolean canClose = super();
if (canClose && element.closedOk())
{
canClose = myClass.checkCloseDialog();
}
return canClose;
}
And now seems that it works
I wonder why you use RunBaseBatch instead of the newer framework: SysOperation. It's easier to implement (e.g. you don't need to implement serialization by yourself and you can get a dialog generated by the system) and you also have more execution modes to choose from.
If you want to use RuBaseBatch anyway, you can use the debugger to find out where things go wrong. RunBaseBatch.runOperationNow() may be a good starting point. You may also give us your code for a review.
André Arnaud de Cal...
292,074
Super User 2025 Season 1
Martin Dráb
230,900
Most Valuable Professional
nmaenpaa
101,156