getAndValidateUser in Web enabled form

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

getAndValidateUser in Web enabled form

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:28 pm

by Tim >> Sun, 5 Jul 2009 7:00:22 GMT

Hi, I am developing an HTML thin client application and I am trying to use the getAndValidateUser method. I am creating a logon form and attempting to show it in this method. When trying to run Jade monitor to start the web enabled application, I get an exception error number 14180 and a message of 'a print form cannot be shown'.
This method works when using the standard application mode fine. The documentation does not have any answer that is obvious to me. Has anyone come across this problem before?

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: getAndValidateUser in Web enabled form

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:28 pm

by Jade Support >> Mon, 6 Jul 2009 2:23:28 GMT

Hi Tim,

This situation can occur in a web enabled application that calls "Form.visible := true" rather than using "Form.show()". Is it possible this is happening in your application?

Regards,
Jade Support.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: getAndValidateUser in Web enabled form

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:28 pm

by Torrie Moore >> Tue, 7 Jul 2009 4:13:36 GMT

Hi Tim

This problem could be due to the way that web applications work in Jade. When the monitoring application starts, the application follows the normal appliaction startup e.g. global.getAndValidateUser and then global.isUserValid is called, followed by the application's initialise method. Note that this occurs before the application will accept connections from the web, i.e. as the monitor is starting. You can put write statements in our code to work out the order that the methods are called in and when.

Then, when the user connects, the start up form definied for the application is shown and this is where you would normally validate the user for a web session.

Try making the startup form the user login form and use this to validate your users. (NB when storing the user logged in remember that the Application object is shared between all web sessions, use the WebSession object instead.)

Regards

Torrie


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 11 guests