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

Some Advice Needed!

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

    #31
    Re: Some Advice Needed!

    Originally posted by preston2 View Post
    In my testing one pc was the master and two others where setup as shadows. When you setup a shadow on a normal network it creates a copy of the DB files and stores them on the shadow machine. The shadow updates the files local to it and then they sync to the master. The only difference with the Google Drive setup is sending that sync request across the internet instead of an intranet. I have had two of the machines, the master and one shadow create invoices at as close to the same time as I could and there was no conflict. Both machines where updated to see each others new invoice. I do not know if there is a setting or I am just being lucky but so far my test have resulted in Google drive syncing to all machines so fast I would have to say it was instant.

    But to take this whole experiment one step in a sideways direction I am now testing mapping a drive letter to a ftp site. Doing it this way there is no local folder in between. The ftp site looks and acts just like a local dive on your pc. Will see how this goes.
    Preston, The problem I found was that if the master (which holds the indexes) is on Google drive there are multiple copies of the indexes created, both locally on each PC and within the cloud. The FTP route should resolve this, but no idea what impact it may have on performance.

    Comment


      #32
      Re: Some Advice Needed!

      When you setup a shadow on a normal network it creates a copy of the DB files and stores them on the shadow machine.
      are you sure???
      I am pretty sure that the shadow stores the forms etc not the data, on the local computer.

      Comment


        #33
        Re: Some Advice Needed!

        Originally posted by David Boomer View Post
        I am pretty sure that the shadow stores the forms etc not the data, on the local computer.
        Correct. It creates a dbf which contains the path to the real data and the other files contain the forms, reports stored locally thus speeding things up.
        Peter
        AlphaBase Solutions, LLC

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


        Comment


          #34
          Re: Some Advice Needed!

          Originally posted by David Boomer View Post
          are you sure???
          I am pretty sure that the shadow stores the forms etc not the data, on the local computer.
          On mine the master contains these files for the tables and sets. .cdx . dbf .ddd .ddm . ddx .sem .set .sex . On the Shadow it has the .dbf .ddd. ddm .ddx .ddx .sem .set .sex . So everything except the .cdx which is the index file.

          For the database file both the Master and the Shadow contain all the same files, .adb .aex .alb .alm .alx .muf .rmuf

          In other words those are the files that Alpha installs on the workstation machines.

          This is the code I use in the autoexec script for my workstation installer.

          Code:
          dim master_db_name as C
          dim shadow_db_name as C
          dim startup as c
          
          a5.window_title = "Quick Quote 3.2"
          a5.window_icon = "QQ32a.ico"
          'Hide the Control Panel.
          :controlpanel.hide()
          
          master_db_name = ""
          shadow_db_name = a5.Get_Name()
          ui_modeless_dlg_box("Install Quick Quote",<<%dlg%
          {can_exit=exit}
          {lf};
          Specify the filename of the master copy of the application:;
          [%P=ui_get_file("Select file","(*.adb)",master_db_name)%.100master_db_name];
          {lf};
          <Click Here to Start Install!oK?.not.(master_db_name="")> <Cancel!cancel>;
          %dlg%,<<%code%
          if a_dlg_button = "cancel" then
              ui_modeless_dlg_close("Install Quick Quote")
              a_dlg_button = ""
          end if
          if a_dlg_button = "oK" then
              if file.exists(master_db_name) = .f. then
                  ui_msg_box("Error", "Master Database not found.")
              else
                  a5.Load(master_db_name)
                  a5_nopt_CopyAddFiles(shadow_db_name, master_db_name)
                  create_shadow2(shadow_db_name, .t., .t.)
                  ui_modeless_dlg_close("Install Quick Quote")
              end if
          end if
          %code%)

          Comment


            #35
            Re: Some Advice Needed!

            When you guys tire of all this (none of the approaches you have so far outlined will work,) put T/S on the server and let rremote users login in via T/S - works like a charm - very very fast. I have several clients using T/S for several years.
            Cole Custom Programming - Terrell, Texas
            972 524 8714
            [email protected]

            ____________________
            "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

            Comment


              #36
              Re: Some Advice Needed!

              Martin

              I have been interested in this discussion for a number of reasons. Why wont this work? Just curious.
              Regards,

              John W.
              www.CustomReportWriters.net

              Comment


                #37
                Re: Some Advice Needed!

                seems to me that a mapped drive to a windows container should work great and with the servers out there today with unlimited connections, it would work better than T/S because of the ability to handle many more connections at one time.
                Dave Mason
                [email protected]
                Skype is dave.mason46

                Comment


                  #38
                  Re: Some Advice Needed!

                  Originally posted by jkwrpc View Post
                  I have been interested in this discussion for a number of reasons. Why wont this work? Just curious.
                  John, many reasons but in a nutshell to me - adjudication - there is no traffic control at the main repository.
                  Of course there are circumstances where this can be controlled, but judging by results posted here, not for error free multi-user table write operation.
                  For reporting purposes, at the read only end I would expect no problem.
                  I dont know enough about SQL but could the traffic control be done on the online server drive?
                  Of course it could but to be practical must be controlled at the source, not with data re-read to the client.

                  With TS / Citrix no data passes up/down. I support Martin. Not to say I am not supporting this exploration, but with the best shadowing there would have to be periods of data sending, however at zero cost it is worthwhile working on a strategy.

                  Comment


                    #39
                    Re: Some Advice Needed!

                    Ray/Dave - thanks for the feedback. I am not an expert on this nor an expert by any means with A5.

                    What interests me is the use of Google Drive and OneDrive as a 'cloud' repository for a shared database. It does seem mapping the drive would be efficient.

                    I am also curious about the services themselves. I wonder if they would have enough bandwidth to support database application activity in a production situation. Finally, both services are geared towards collaboration and sharing. Are there enough security features to protect the database from being hacked.
                    Regards,

                    John W.
                    www.CustomReportWriters.net

                    Comment


                      #40
                      Re: Some Advice Needed!

                      One does not have to use shadowed tables at all, but need plenty of memory on the server portion to accommodate. Also can use dbf if so desired.
                      Shadowed, the indexing is still done on the server. Passing of data for most apps is not such a big deal, but a really big one, it could be a bunch. Smart planning could overcome many data moving slowdowns.

                      I would think a designated server at a hosting account may be a good choice as well.
                      Dave Mason
                      [email protected]
                      Skype is dave.mason46

                      Comment


                        #41
                        Re: Some Advice Needed!

                        Originally posted by jkwrpc View Post
                        Ray/Dave - thanks for the feedback. I am not an expert on this nor an expert by any means with A5.

                        What interests me is the use of Google Drive and OneDrive as a 'cloud' repository for a shared database. It does seem mapping the drive would be efficient.

                        I am also curious about the services themselves. I wonder if they would have enough bandwidth to support database application activity in a production situation. Finally, both services are geared towards collaboration and sharing. Are there enough security features to protect the database from being hacked.
                        I will be starting a new thread before long on this subject to hopefully discuss the the how-to's, why-for's, up-sides, down-sides and tricks to getting all this to work one way or another.

                        Just reading through the post here it seems some expect enterprise results from non-enterprise solutions. There may or may not be a way to get there with a no cost solution. Hopefully we can find out.

                        That said, using something like Google Drive does work and can work very well depending on your application and the way your customers use it. Mine works very well using Google Drive and the way my app is used. I will also be looking at adding a few lines of code here and there to minimize any conflicts even more but I believe that will be an easier task then an almost total rewrite to convert my desktop app into a web app using a WAS.

                        As for security when using Google Drive or Onedrive. First if you set a Google Drive to "Public" then there is no security for it. In Private mode only those the account owner invites in can see and use the drive or folder on the drive. I also have mine set to where it requires two different authentications before a computer can connect the first time. One is naturally a user name and password. The other is an access code that gets sent to my cell phone and you must enter that code to connect the first time. That code is different for each computer connection so people cannot just pass that code around. We must also remember that Google's reputation is on the line when it comes to security of your files stored on a Google Drive. This is also the case with Microsoft's Onedrive.

                        There are a lot of solutions out there to make this type of setup work. From a cloud drive to VPN to WAN and others. Not every solution will fit every need but there are solutions out there. Many are free or very low cost. Some are pricey.

                        I have never been a person that accepts "It cannot be done" so I will find a way to do this on various levels.

                        Comment


                          #42
                          Re: Some Advice Needed!

                          Another option would be to host the data on sql server which is inexpensive. Then simply map the data using active tables

                          Comment


                            #43
                            Re: Some Advice Needed!

                            Will be inteesting how this plays out - and if it works (which I am a bit skeptical of) will be one more great way to make a desktop work as a quasi web app.

                            Until you have several users testing at the same time for a few days, you won't know. And you will need to confirm that local devices will work with it for several concurrent users.
                            Cole Custom Programming - Terrell, Texas
                            972 524 8714
                            [email protected]

                            ____________________
                            "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

                            Comment


                              #44
                              Re: Some Advice Needed!

                              Has anyone made any progress with this? made it work, etc.?
                              Cole Custom Programming - Terrell, Texas
                              972 524 8714
                              [email protected]

                              ____________________
                              "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

                              Comment


                                #45
                                Re: Some Advice Needed!

                                Originally posted by martinwcole View Post
                                Has anyone made any progress with this? made it work, etc.?
                                I have not had much time to explore other ways of doing it. Right now the Google Drive is working just fine for my app but I know it does not fit the needs of some of the others here.

                                Comment

                                Working...
                                X