Hi,
One of our screens on our web application (Jade Web Forms) allows a user to type monetary values against a person and a payment, this is displayed in a grid-like layout. The screen only contains 5 items and 15 people so we have used up, down, left and right buttons to move over to further pages. Pressing these buttons temporarily saves the values on the current page and then finally pressing the "OK" button saves all values from all accessed pages into the database. We have done this as table objects have limited functionality in Jade Web Forms.
The problem we are having is that a user has starting entering values in one screen then pressing the "Right" button to move over a page, then before the screen has finished loading they have pressed the "OK" button. This is saving the values in the first screen as required, but then saving the same values into the grid on the second page.
To stop this, i have attempted to use a Boolean object as a soft-lock. So that when any button is pressed, the lock is set to true to stop the user from pressing subsequent buttons. My issue, is how to unlock this lock! I have tried adding the code (currentSession.softlock := false;) to various parts of the populate method but it still runs the OK code. It appears to be the HTML displaying of the data which is causing the delay, and not the Jade source creating the grids. I have tried unlocking it in the "Reply" method of the WebSession subclass as this is the latest point i know of in the process, but again, this did not work.
Has anybody else had a similar problem to this? Sorry if my description above is unclear! It's a simpler system than i have made it sound! If any further details are needed then let me know.
Cheers,
Rich