Kishan_Canoo Posted November 5, 2013 Posted November 5, 2013 I have created a simple cash register and using a portal to add items via a barcode scanner reader and by using Exit Script [Result: False] it is automatically moved to another portal row i want to know if there is a way to cancel the Exit Script [Result: False] with a command button to validate the transaction. Thanks to share your ideas.
Lee Smith Posted November 5, 2013 Posted November 5, 2013 I moved your topic from "Articles, Tips, Techniques & Solutions" to "Managing Scripts". Please read the descriptions of the topic before you post your questions in them The Articles, Tips, Techinques & Solutions state Member contributions including articles, tips, tricks & techniques. Please provide links to previously posted threads, and demo or sample files & open source solutions. Discussion and dialog for implementation and development If you have any questions about this action, contact me by Private Message. Lee
Fitch Posted November 5, 2013 Posted November 5, 2013 You might want to have a look at the types of triggers: http://help.filemaker.com/app/answers/detail/a_id/7465 In particular, notice that some triggers run Pre (before) the event, and some run Post (after). If you are using OnObjectSave, for example, you might try switching to OnObjectValidate. That should keep the cursor in the same field when you Exit(False).
Kishan_Canoo Posted November 6, 2013 Author Posted November 6, 2013 More Details.. System and setup a portal to input Scan barcode number to the portal row one by one via a Script Triggers as per below Go to Field[POS::BarcodeID] Go to portal row[Last] Exit Script [Result: False] And it's working well. I want to know how i can end the transaction by cancelling the Exit Script [Result: False]? Now i am stuck on the Exit Script [Result: False] by waiting for another scan barcode command. I will need to be able to cancel the Exit Script [Result: False] to be able to complete the transaction and print a receipt.
Fitch Posted November 9, 2013 Posted November 9, 2013 See my previous post. OnObjectExit triggers when you exit a field, even if you haven’t made changes. OnObjectValidate triggers when you exit a field after making changes. If you haven't made changes, it won't trigger, and if I understand what you're trying to do, this should allow your completion script to run when you click the button.
Recommended Posts
This topic is 4032 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now