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

Data Entry Technique for a Grocery Application

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

    #16
    Re: Data Entry Technique for a Grocery Application

    Tom, yes they certainly can be on the server. It doesnt defeat the object
    You simply control who accesses which via filename.
    You could also keep them on the C drive and use the same filename.
    The point is that your form always belongs to one shadow table.

    Comment


      #17
      Re: Data Entry Technique for a Grocery Application

      No comments for a while so you lot are trying it out.
      Lets hear from you when done.

      Comment


        #18
        Re: Data Entry Technique for a Grocery Application

        Ray.

        This is new territory for me. Can you break the entire sequence down into smaller steps ?

        I'm confused about the data entry sequence.

        When the shadow table opens is the "real" table opened also?

        Is the shadow table a physical table? (It would seem so)

        When records are entered into the shadow table are they entered into the "real" table automatically?

        I'm having trouble seeing the advantage here in a multi-user setting (it seems to me that the "link" or "shadow" relationship must be invoked before your data entry begins. This suggests that both shadow and "real" tables are open during data entry. )

        Thanks.

        Comment


          #19
          Re: Data Entry Technique for a Grocery Application

          Ray, maybe this will help you understand my confusion.

          In a multi-user app where high data entry speed is the goal, I could envision a design that uses local tables on each workstation. Data entry to the local table involves no network activity. When the transaction is accepted / finished a script then appends the transaction records to the database tables on the server. Collisions with other users are minimized (and can be easily trapped) since no one on the network is editing data directly in the tables on the server.

          I thought maybe your shadow tables would fit this model, but they do not seem to. Am I missing something?

          Comment


            #20
            Re: Data Entry Technique for a Grocery Application

            Tom, you are 100% correct.
            The exclusive use of temp files was not the main reason for my using shadow tables. It is a spin-off because I personally like it - I can go into the reasons with you. To do with data confidentiality, and accessibility, trace-ability from the server, testing purposes and my own phobias.

            Simply for personal temp tables the C: option is fine. As you said. works exactly the same. For the multi-user purpose only.

            My reasons using shadow tables is for a more far reaching porpoise (humour), mainly around finding, viewing, printing and maybe even editing, following data wherever it lies as it moves and replicates rather than a multitude of file and record copies. And all that using a common interface set.
            the structure of all of the different extended tables is different to the shadow, but all have at least the shadow's fields. for example auto incrementing different fields in each location. Ultimately an invoice can be tracked via its history, archive retrieval and origins but each in a different vertical part of the application.
            SHIKES Im now getting convoluted. And thats the short explanation. I'll stop here - ask if further interested.

            The shadow table NEVER "OPENS" - it only contains a pointer. No records.

            Comment


              #21
              Re: Data Entry Technique for a Grocery Application

              Experts are now confused a bit, how much more to beginners,Ray, can you possibly share your sample in the Code Archive? Seems your approach is very much effective that even long time alpha users are not aware of your technique.Thanks!

              Comment


                #22
                Re: Data Entry Technique for a Grocery Application

                hello
                i never had a runtime license, finally bought one and reading thru the documentation and playing with it ( along with my web development).
                i see if we do network optimization, it creates a shadow copy of all the files in the original master db. i store that in a separate folder along with supporting folders. and when you open the shadow copy it looks and feels like the regular master
                and it updates the master instantly. so far tried using with two computers and the record insertion has been painless.
                should i create another temp copy of the shadow table to work with it, to be safe?
                thanks for reading

                gandhi

                version 11 3381 - 4096
                mysql backend
                http://www.alphawebprogramming.blogspot.com
                [email protected]
                Skype:[email protected]
                1 914 924 5171

                Comment


                  #23
                  Re: Data Entry Technique for a Grocery Application

                  I don't have so much money but I really need to have his kind of solution suggested by Ray, Can someone offer do it for me with a price, May I request for the lowest bidder because as I have said I dont have much money.Please Pm me if somebody is interested.It is quite disappointing that the browse control cannot handle this kind of multiuser situation which is very much common for many applications, the xdialog is highly suggested but it takes too much code and contradicts alpha five's RAD nature. If the browse control could be improved for this then alpha five is the best RAD tool for desktop database RAD tool.

                  Comment


                    #24
                    Re: Data Entry Technique for a Grocery Application

                    @Tom
                    There is the advantage in that whilst developing, and later changing, ALL changes to form rules, table rules etc are done once to the shadow and apply to all the tables that will get used. Even when you create new user tables. One table can then be used by different forms providing different attributes. I haven't even explored all the possibilities yet. There is nothing in the help other than the sample with the function.

                    @Jet. I pointed earlier to the fundamental code and gave example function to do the switching. This is quite powerful and very specific to your needs.
                    You really should experiment.
                    I will try to put a generic demo together, focussed only on the aspect of temp private tables that interests you - but you would still want to go into those to see how they work to tailor it. You may have more questions than I could answer.

                    I'm thinking the meantime if Tom would explain the local pc method that might get you there quicker.
                    That I imagine would entail checking a local drive for existence of the temp table and create it if is not. Your code would specifically refer to a C drive.

                    @Gandhi - there is a difference to shadow database which is a copy of the whole database (all tables), this is regarding table shadow.

                    When this facility was released in V10 Selwyn made mention of its usefulness - no one else seemed to see a use.
                    I had a need, with what I had been doing in systems previous, and this looked like a possibility - it turned out so, and more than expected. Maybe others with more experience in Alpha are adept at writing programs that do the same thing, for me I struggled for long - this is deployed easily - after a lot of experimentation, testing what happens when...
                    Last edited by Ray in Capetown; 12-14-2012, 01:34 AM.

                    Comment


                      #25
                      Re: Data Entry Technique for a Grocery Application

                      Thanks very much Ray for the example, I hope you can spend a bit more time and charge me for it so that it would be more complete.

                      Comment


                        #26
                        Re: Data Entry Technique for a Grocery Application

                        I will post or send you a working sample to see if it is actually the panacea (= the solution to all problems) you expect.
                        I wont write a specific system for you - the brief would have to be very specific and detailed.

                        Comment


                          #27
                          Re: Data Entry Technique for a Grocery Application

                          Originally posted by Ray in Capetown View Post
                          I will post or send you a working sample to see if it is actually the panacea (= the solution to all problems) you expect.
                          I wont write a specific system for you - the brief would have to be very specific and detailed.
                          Thanks very much!

                          Comment


                            #28
                            Re: Data Entry Technique for a Grocery Application

                            AS promised
                            A basic working demo for invoicing using shadow for temp tables. It explicitly offers facility for two users each independent of each other.
                            I added a simple field rule to demonstrate how rules migrate with the shadow.
                            Uses only a header and lines tables which are shadow linked.
                            Start with the start form - the NEW button would show how one can ZAP the invoice tables whilst other users are invoicing.

                            You can, in the standard manner add field rules, additional tables for stock lookup and customer details. Add totals tax calcs etc
                            Add buttons on the form to proceed with print and archive and post and all of those things as normal.

                            This is offered purely as a learning exercise to learn from or not as you choose. No warranty or support is to be expected.
                            In the spirit of this we can all learn from any new application anyone discovers so post back.

                            And JEt what I would like is to know WHERE YOU ARE operating from?
                            Attached Files
                            Last edited by Ray in Capetown; 12-14-2012, 09:10 AM. Reason: attachment

                            Comment


                              #29
                              Re: Data Entry Technique for a Grocery Application

                              Ray, What if I will be adding a new table called customer and products, am I going to create a shadow also for these two tables? how did the Two tables invhshadow and invlshadow got created?I also noticed that the structure cannot be edited, I tried to delete them on the workspace because I thought they can be automatically added by clicking new on the start menu, are the shadow tables created on the fly?. This might work well Ray, nice approach to multi user, I am trying to figure the logic behind , BTW, how do I combine both the invoices of the two users so that when I create a report, it would come from only a sales header and a sales detail line?
                              Last edited by JetLi; 12-14-2012, 10:01 AM.

                              Comment


                                #30
                                Re: Data Entry Technique for a Grocery Application

                                Thanks, Ray. I'll enjoy studying this over the weekend.

                                -- tom

                                Comment

                                Working...
                                X