General information
Category:
Forms & Form designer
>Hi,
>
>I am facing a problem, I have a form on which I calculated the Total amount of the a grid column. After that, there is a discount field and that Amount Received(EPOS SYSTEM). Please note that I have given the commands of Drawer Opening, Pole Display and Printing in Lost Focus event of Amount Received field.
>
>Suppose if by mistake a user comes on Amount Received field without giving any discount (if applicable) he cannot. Kindly suggest what to do in that case.
>
>Saif
From what I've read so far, you want the ability to go back to the Discount field if the user accidently got to the Amount Recieved field. The problem is that LostFocus() in the Amount Received field fires various other commands.
I see two possibilities.
1. Best, I think, is to move the Drawer Open, Pole Display etc. to a separate command button. This button can be disabled initially and the LostFocus() in the Amount Received field can enable it. Preferably, it should have validation logic so that it won't do anything unless all the necessary information is present.
2. Check the value in Amount Received. If it is some special value (zero, negative, or maybe even character) set focus back to the Discount field. Otherwise, perform the current set of tasks.
I think my first alternative is far better, but screen real estate, current interface, etc. may make second option better. I wouldn't be surprised to find a better solution offered elsewhere, but I think either of these ideas would work.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only