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

Looking for a way to sync data

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

    Looking for a way to sync data

    Hi all,
    I am looking for an easy way for one user to sync data with another user with out the use of a network. They will be sending the data to each other via cd(for reasons I won't go into here).
    I can do a backup but when I restore it overwrites all the data and doesn't sync it. Is there a way that you can take the zip backup file and add it without overwriting existing data. If you have an idea of how this can be done or if you know of an easier better method for syncing data please let me know. The database users are not going to be connected by internet or other network.
    Thanks,
    Walter

    #2
    Originally posted by beach_bar
    Hi all,
    I am looking for an easy way for one user to sync data with another user with out the use of a network. They will be sending the data to each other via cd(for reasons I won't go into here).
    I can do a backup but when I restore it overwrites all the data and doesn't sync it. Is there a way that you can take the zip backup file and add it without overwriting existing data. If you have an idea of how this can be done or if you know of an easier better method for syncing data please let me know. The database users are not going to be connected by internet or other network.
    Thanks,
    Walter
    There is no way to sync your data.

    Suppose both users make changes to the same record changing the spelling of a last name for someone. When you attempted to sync the data, how would you decide which change to apply?
    There can be only one.

    Comment


      #3
      Walter,

      I think automatic synchronization would be very difficult and always imperfect. Depending upon the app you could come close, but there would always be the potential for edits at one location being overwritten by edits at the other.

      Consider this scenario.

      Assume each record includes fields for the time and date of last revision.
      Assume that one location has the "official" copy of the table.
      Changes made at the remote location would be date and time stamped.
      The date time stamp in each remote table record could be compared to the date time stamp in the "official" table. Entries with the most recent date time stamp could be stored in the "official" table, earlier entries for the same record discarded. Periodically, the "official" table would be copied back to the remote location.

      This would never be perfect. Edits at the "official" table could easily be overwritten by later edits at the remote, and vice versa. Nevertheless, if you included an audit trail at the location of the "official" table you'd be able to backtrack if an error occurred. The problem becomes how to "know" if an error occurred.

      Not easy. Not perfect. Error prone. Complex custom scripts will be needed.

      If an automatic solution is not needed the remote location's table could be compared with the "official" table, and the two people could personally discuss any edits that each made to the same record.

      -- tom

      Comment


        #4
        Walter

        Alpha is based on dbf tables which do not offer a native synchronization. I believe there are 3rd party solutions that claim to be able to do this.

        Otherwise, tools such as MS SQL, MySQL, and others offer this type of sophistication. You may want to direct your research to those to get answers on what is possible and practical.

        Most solutions still require a conflict resolution or tracking of those conflicts.....

        Later releases of Alpha talk about have more data sources to build on and synchronization is one of the reasons to have that. Please don't ask for a timetable. We'd all love one.....
        Al Buchholz
        Bookwood Systems, LTD
        Weekly QReportBuilder Webinars Thursday 1 pm CST

        Occam's Razor - KISS
        Normalize till it hurts - De-normalize till it works.
        Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
        When we triage a problem it is much easier to read sample systems than to read a mind.
        "Make it as simple as possible, but not simpler."
        Albert Einstein

        http://www.iadn.com/images/media/iadn_member.png

        Comment


          #5
          Walter, a bunch of assumptions have been made here in trying to answer your question. Could you be a bit more detailed in the scenerio? For example, maybe everyone would be working on different assignments, and each record would have its own unique ID, so there would be no problem determing which record was the "master" since they are all unique.
          Steve Wood
          See my profile on IADN

          Comment


            #6
            Tom has a good point that even date stamping will not prevent the possibility of errors once the data has been updated in both directions. They would be better off sending lists of the data each added and letting them re-enter it into their own copies. Sending a daily or weekly fax instead of a CD. Then all you need to do, is write them a few reports ;p
            Last edited by MoGrace; 05-21-2006, 05:42 PM.
            Robin

            Discernment is not needed in things that differ, but in those things that appear to be the same. - Miles Sanford

            Comment


              #7
              Walter,

              A agree with Steve, that assumptions are being made that might be in error. What has not been clarified is whether this is only two users involved, or more, and whether this represents users engaged in serial data changes (one then another) or whether these users are working on the data in parallel (simultaneously). If the data is being amended serially (one person's additions and then the others), then what you seek might be achievable. Or, whether the users amending existing records, or just adding new/additional records. If data is only being added, and existing records are not being changed, then 'updating' could be achievable. And depending upon the complexity of your data, and the number of users, schemes for even parallel processes can be devised, if and only if, the complexity is low, the number of existing record amendments is quite few, and the users are very few. If not these, then the feedback that Tom, Stan, and Al shared are the hard truth to your question.

              Mike W
              Mike W
              __________________________
              "I rebel in at least small things to express to the world that I have not completely surrendered"

              Comment


                #8
                Hi all,
                Thanks for your replies. I have found a solution, I think. I decided to use a composite key for each table, one of the fields for the composite key being a user id. In this way I can make sure that no two records have the same composite key. Also, each person will be entering in data about a different area in the country so there is little risk of having users entering redundant data. If anyone sees a possible issue with this that I should look out for and missed please let me know. As for now it seems like it is working, however I have just started my testing. I will however, need to handle cascading deletes in code as alpha five V6 does not allow cascading changes and deletes with composite keys.
                Thanks again to all of you,
                Walter

                Comment

                Working...
                X