Page 1 of 1

User confirmation when executingMethod from JadeLoadB

Posted: Thu May 29, 2014 5:25 pm
by Stokes
Does anyone know of a way of getting a user to confirm they have seen an output before it closes using jadloadb?

jadloadb path=<system> ini=<ini> server=SingleUser executeSchema=<schema> executeClass=JadeScript executeMethod=samTest app=<app> schema=<schema>

What I am trying to achieve is to show a user all the methods that are in error without having to go into the system to check. I have that working great and it is outputting this information to a Jade Interpreter Output but it disappears potentially before the user has seen what the methods that are in error.

I tried a message box that didn't work. I tried process.debug but I couldn't do that from a serverExecution method. Only thing I have found to work will be process.sleep(10000) then saying it will close this window in 10 seconds. Hoping there is a better way!

Re: User confirmation when executingMethod from JadeLoadB

Posted: Thu May 29, 2014 9:43 pm
by BeeJay
Personally I'd go with logging the details to a file, using the JadeLog class, instead of writing to the Interpreter Output Window. They can then open that logfile with Notepad, or similar, to see the details.

Cheers,
BeeJay.

Re: User confirmation when executingMethod from JadeLoadB

Posted: Fri May 30, 2014 9:39 am
by JohnP
You could make it a gui noforms app instead of using jadclient, then your msgBox will work.

Re: User confirmation when executingMethod from JadeLoadB

Posted: Fri May 30, 2014 9:50 am
by Stokes
I like the idea of having a gui no-forms app to display the message box. I don't really want the user to have to find a log file with this information, I would rather present it straight away.