Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

how to lock buttons in a multi user app?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    how to lock buttons in a multi user app?

    hi to all,

    im having troubles in locking buttons in a multi-user application....

    i have 3 buttons currently that opens an invoice form, these 3 buttons calls the same invoice form and i just rename their window bar name based on the buttons text (caption) for me to track which button was clicked.
    my buttons text are:
    Table1
    Table2
    Table3

    now, what i want to achieve is that if user1 clicked the Table1 button, Table1 button will be locked on the current user and other users screen too. other users of course will not be able to click Table1 button since its already locked by user1. & vice versa, if then user2 clicked Table2 button, other users Table2 button should be locked too till the invoice transaction is billed out.

    please help

    thanks in advance
    Francis

    #2
    Re: how to lock buttons in a multi user app?

    Francis, I don't think this is possible. The current instance of Alpha Five running on workstation #1 cannot change the properties of form objects in a second instance of Alpha Five running on workstation #2. Even if it were possible I think this is an unwise design choice. If user1 goes to lunch after locking the table the other workstations are unable to complete their work. Even worse if user1 locks the table and then goes on holiday. May I ask why you want to lock other users out of the table when someone else on the network has opened a form that uses the same table?

    Comment


      #3
      Re: how to lock buttons in a multi user app?

      Tom,

      thanks for the prompt response...

      May I ask why you want to lock other users out of the table when someone else on the network has opened a form that uses the same table?
      (Table1, 2 and 3 stands for physical table on a restaurant) sorry for not making it clear

      basicaly, the application is for a restaurant billing. i designed this for a single user and i think it will work for a single cashiering only since the payment method is pay after the customers finished their food. the user enters orders on the billing and get back to it if more additional orders are made. or user can collect the order slips per table and enter them to invoice if they will bill-out.

      restaurant with multi-cashiering use pay after customer ordered food just like on fast food restaurant so table reservation is not an issue.

      a1-res does this but im not sure if he used buttons on his hotel reservation app.

      thanks
      Francis

      Comment


        #4
        Re: how to lock buttons in a multi user app?

        I don't really understand what you are doing, But I think Tom is right that your method is probably not the best way to do it. Nonetheless, you could have a separate table w. 3 records corresponding to your 3 tables. When the Table1 button is pushed, change the corresponding table1 record to "locked" or whatever. Make the 3 button's code 1st check to see if the record for that table is already "locked", if it is, end the script, otherwise open the form.
        Peter
        AlphaBase Solutions, LLC

        [email protected]
        https://www.alphabasesolutions.com


        Comment


          #5
          Re: how to lock buttons in a multi user app?

          Francis,

          I think I understand what it is you are attempting to do. I plan a similar strategy for when servicing a Machine (substitute your Table for this). Once a Machine has been scheduled to be visited (your Table is in use) I will have a logical field set to True. Now the only way to schedule the same Machine (your Table to be in use) to be serviced is when this logical field is False. Once serviced (billed out in your case), the logical field is once again set to False.

          This is an absolute requirement to have in my case and for you it has to be done in this way as how can you have two groups using the same table at the same time?

          Sound about right??




          NOTE: Well, I do visit a small cafe in which this actually does happen--matter of fact sometimes there have been 5-6 different bills for the same table at the same time (people sharing their table with others)...if your restaurant does not allow this then your "table locking" would work.
          Last edited by MikeC; 02-22-2008, 01:39 PM.
          Mike
          __________________________________________
          It is only when we forget all our learning that we begin to know.
          It's not what you look at that matters, it's what you see.
          Henry David Thoreau
          __________________________________________



          Comment


            #6
            Re: how to lock buttons in a multi user app?

            peter,

            i made some confusion to my post. Table1, Table2, Table3 are my buttons text or captions if we use vb. the application as i said is for a restaurant. mike got the idea what i am trying to accomplish.

            let me explain it more so others might chime and share better ideas to make my approach dynamic. suppose i have a 3 cottages and these cottages are mapped on my 3 buttons in my main form, namely Cottage1, cottage2 and cottage3 respectively. since the bar/restaurant bills the client after they are done with their dringking and eating, the current design that i have will work. what my app do?

            if customers arrive and occupied cottage1 and orders are taken, the encoder enters their order clicking the button cottage1. this button opens the form invoice and create a header record instantly (thats adding a new record and saving it) then name it on the window bar as the buttons text which is Cottage1, locking the cottage1 because it is occupied. when customers again occupies other cottages, encoder must not use the occupied cottage right so i lock the button and fill some back color on it to stand out. but a question came accross to me... what if there will be 2 or more cashiers like to those on fast food rest.? then came the answer that fast food rest. differs from bar/rest. with its billing method. fast food bills right after you order and customers selects whichever tables they would want to occupy so tables now here are not an issue anymore. but with a bar and restaurant that bills after they ate. my current design will work since it can accomodate all customers since its not that huge of a restaurant. now if its huge and will need more billing computers, peter suggested that i will save the status to a table so it will reflect on other computer as well.

            mike, customers on this rest. comes in groups. they dont share tables like in cafe or fast food. if they do, my buttons captions are editable on the fly. they can add a button and say split Table1 and Table1-A for the time being. i have blank buttons hidden on the main form just in case they will need more tables, rooms or cottages.

            thanks peter... i will look into this tonight and update you how it goes.
            will ask for more help to you guys when i get stuck.

            tnx again
            Last edited by fddizon; 02-23-2008, 03:26 AM.
            Francis

            Comment


              #7
              Re: how to lock buttons in a multi user app?

              Why not have a table call say Main. Have logical field for each cottage (button). When you want the button locked you have the field changed to true, otherwise the field is false (button unlocked). If the main form is always open have a timer and fetch event go and do a lookup on this one line in the main table. Based on what each field is set to the script then either has each button locked or not.

              Comment

              Working...
              X