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

Automatically update the Shadow Database

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

    Automatically update the Shadow Database

    Is there a way to automatically update the shadow database rather than have it prompt the user to click OK? I know there are reasons for this although in my case I just want the client to "Auto-Update" to the lastest Master version without the prompt. (See attachment: Example of the prompt I am referring to)
    Attached Files

    #2
    Re: Automatically update the Shadow Database

    Scott K,

    Does this not work for you?

    Control panel-> Tools-> Network Optimization-> Options

    ShadowRefresh.gif

    Scott E.

    Comment


      #3
      Re: Automatically update the Shadow Database

      Scott E.,

      To be honest I am not sure. I have my runtime clients already installed/setup and the Network Optimization settings are no longer available. This is, I believe, exactely what I am looking for. Do you know if this value kept in the registry somewhere?

      Scott K.
      Attached Files

      Comment


        #4
        Re: Automatically update the Shadow Database

        You should be able to put the refresh_shadow() function in the autoexec.

        That wouldn't check for an updated version but it would force the refresh.

        Seems the version number is stored in the database support files.

        You can check the version with

        A5_getAppVersionNumber()
        Last edited by Stan Mathews; 05-06-2011, 04:11 PM.
        There can be only one.

        Comment


          #5
          Re: Automatically update the Shadow Database

          Stan,

          I definetly don't want to force a refresh unless I need to (to time consuming). Users open the app many times a day. I have a routine now that set the app version and the runtime checks the version by defualt. If it requires an update I want it to automaitcally update the runtime/shadow rather than wait for the user to click "OK". Looks like the option Scott E. mentioned would work if I could just figure out where the value is stored.

          Comment


            #6
            Re: Automatically update the Shadow Database

            I modified my earlier post with that info.
            There can be only one.

            Comment


              #7
              Re: Automatically update the Shadow Database

              Well Stan if you were not so dang fast........ :)

              I believe the runtime check for the version occurs before the autoexec. Can anyone confirm?

              Comment


                #8
                Re: Automatically update the Shadow Database

                You can have code that executes before the autoexec if you set it with ON_DATABASE_INIT().
                There can be only one.

                Comment


                  #9
                  Re: Automatically update the Shadow Database

                  Stan, Can you tell me......will code put there run before the "built in check"? I said that wrong but I think you know what I mean. :)

                  Comment


                    #10
                    Re: Automatically update the Shadow Database

                    Can't say.
                    There can be only one.

                    Comment


                      #11
                      Re: Automatically update the Shadow Database

                      OK, If I remember correctly, (I did some testing about 1.5yrs ago) and gave up because "the built in check" always took over. I will test it a little more next week and get back to you. If anyone else can confirm the order, let us know.

                      Comment


                        #12
                        Re: Automatically update the Shadow Database

                        You'll probably have to go to the client or download their database. Set the desired network optimize options with the developer version, then have them all refresh the shadow.

                        If you really want to tinker....

                        The setting you are looking for is in the databasename.alm file. The entry name is Network Optimize, the memo content portion is <outofdate_flag=1> and the value you want it set to is 3....

                        <outofdate_flag=3>

                        not opt.gif
                        Last edited by Stan Mathews; 05-06-2011, 05:00 PM.
                        There can be only one.

                        Comment


                          #13
                          Re: Automatically update the Shadow Database

                          I could be wrong(its been known to happen :)), but if you update your version number with a higher number in the ADB stored on the server and set the network optimize as I mentioned in post #2 all the shadows will refresh automatically and then any time the version number is changed from that point on the shadows will refresh.

                          Use the developer to set the version number and the refresh option, then copy the ADB and the AL* files to the server from your development copy and all should be fine.

                          Scott E.

                          Comment


                            #14
                            Re: Automatically update the Shadow Database

                            Stan, In post #12 you mention changing a value in the .alm file. How do you or what application do you use to open the file properly so it look like what you have shown?

                            Comment


                              #15
                              Re: Automatically update the Shadow Database

                              You don't need to use Alpha's numbering system if you want to control it yourself. Keep your version no in a text file and check against that.
                              Peter
                              AlphaBase Solutions, LLC

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


                              Comment

                              Working...
                              X