I have a class extended from RunBaseBatch.In the main method ,I have
if (assignment_Level.prompt())
assignment_Level.run();
when pressing ok, no response happens although the run method has been overwritten. How can I solve this issue ?
public Object dialog()
{
DialogRunbase dialogRunbase = super();
;
""Add all your custom dialog fields. "
return dialogRunbase;
}
As shown above, please do it you will get rid of the problem.
Regards
Dilliraj
Please review the dialog() method on the class..
I suspect there is something wrong in this method..
Please post the dialog() method body, may that will help find out if there is any issue.
Please update.
Could you post a list of methods on your class? And if you have changes to the prompt og dialog methods, could you post the contents of these?
Yes, this issue is only faced in this class which is created from scratch. I tried to duplicate and modify one of the other classes extended from RunbaseBatch which was developed by one of our team before and it work properly, so what is the reason for such a problem?
Hi,
Is this only happening to assignment_Level?
What about other classes that extends from RunbaseBatch?
From the debugging in the method promptPrim() at line dialog.wait() when I press ok nothing happens but if cancel is pressed it goes to next code line dialogCanceled = !dialog.closedOk();
RunBase method has not been overridden .
the problem is when pressing ok no boolean value returns and so the run method is not executed at all.
should I modify any method to make ok button returns true?
That sounds odd.
Have you overridden the dialog method from RunBase, and in that case how does it look?
Try to put a breakpoint on assignment_Level.run(); and debug the code to see if you actually hit the run method.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,522 Super User 2024 Season 2
Martin Dráb 228,441 Most Valuable Professional
nmaenpaa 101,148