docfx Posted August 3, 2002 Posted August 3, 2002 Recently there were some posts re: changing the text of a button by a script. The suggestions related to the use of a field vs actual text label. I want the reverse. I have two screens w/ roughly 50 buttons each. Each is to launch a script (preferrably the same script) that pastes a value into a field. The "value" I want to use is the button label. Other fields perform lookups based on the contents of this field. The button labels may change from time to time, so IF the text label can be used, the user can be kept from having to edit one of 100 auto-enter fields and/or 100 hardcoded scripts inserting text. Any ideas?
RussBaker Posted August 4, 2002 Posted August 4, 2002 I'd use either global fields or calc fields (depending on your requirement) as part of the button. I use something similar for entering a purchase date where the user as a choice of 7 buttons which display "today", "yesterday" and then the dates of the previous 7 days. Because the days change, the dates appear in the fields and then the associated script will paste as required. You could have an "administrator" layout where the contents of the buttons name fields can be changed. As far as the user "having to edit one of 100 auto-enter fields and/or 100 hardcoded scripts inserting text." Gutsy play giving the user that much access to the system...
docfx Posted August 6, 2002 Author Posted August 6, 2002 Thanks, that did the trick. I used just a shade under 150 globals (3 screens of 48 buttons each). I wasn't able to make it use JUST one script (as I have more time, I may go back and clean it up), but its werking. This is just one facet of a full system under development. But we've only two weeks to get the pilot operational. It is a POS module that will be running on up to 28 stations (in diff bldgs) and where the "clerk" need only push a button and the appropriate item is added to the "sale" ledger, totalling as items are added. The diff bldgs *may* sell diff items, so i needed the ability to easily customize the buttons. The admin editable button label MUST match items in the product master in order to pull descriptions and prices, etc. Magstrip or barcode IDs are parsed and are be used to verify the purhcaser AND DEBIT the account OR 'clerk' may do a CASH sale and have the POS figure change. Thanks again! cheers
Recommended Posts
This topic is 8149 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