User confirmation when executingMethod from JadeLoadB

Forums for specific tips, techniques and example code
Stokes
Posts: 66
Joined: Wed Oct 13, 2010 2:06 pm
Location: QLD, Australia

User confirmation when executingMethod from JadeLoadB

Postby Stokes » Thu May 29, 2014 5:25 pm

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!

User avatar
BeeJay
Posts: 312
Joined: Tue Jun 30, 2009 2:42 pm
Location: Christchurch, NZ

Re: User confirmation when executingMethod from JadeLoadB

Postby BeeJay » Thu May 29, 2014 9:43 pm

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.

JohnP
Posts: 73
Joined: Mon Sep 28, 2009 8:41 am
Location: Christchurch

Re: User confirmation when executingMethod from JadeLoadB

Postby JohnP » Fri May 30, 2014 9:39 am

You could make it a gui noforms app instead of using jadclient, then your msgBox will work.

Stokes
Posts: 66
Joined: Wed Oct 13, 2010 2:06 pm
Location: QLD, Australia

Re: User confirmation when executingMethod from JadeLoadB

Postby Stokes » Fri May 30, 2014 9:50 am

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.


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 5 guests

cron