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

Refresh Shadow automatically

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

    #16
    Re: Refresh Shadow automatically

    That's not the correct result.
    Maybe best to restart Alpha completely and try again (on the Master DB)
    I get this result:

    dim network_optimize as p

    ?a5_load_settings("NetworkOptimize",network_optimize)
    = check_portion = 1
    outofdate_flag = 1
    version_number = 109
    Jo Hulsen
    Dommel Valley Solutions
    The Netherlands

    Comment


      #17
      Re: Refresh Shadow automatically

      Thank you Jo, for trying to help, I still get the same
      dim network_optimize as p

      ?a5_load_settings("NetworkOptimize",network_optimize)
      = <Has no sub-properties>

      Comment


        #18
        Re: Refresh Shadow automatically

        Jetson,

        Are you sure you have pressed ENTER after each line in the interactive window?
        I have tested this on Alpha version 10.5 on two versions, each on a different PC and get the required result.
        Jo Hulsen
        Dommel Valley Solutions
        The Netherlands

        Comment


          #19
          Re: Refresh Shadow automatically

          Originally posted by DVSOL005 View Post
          Jetson,

          Are you sure you have pressed ENTER after each line in the interactive window?
          I have tested this on Alpha version 10.5 on two versions, each on a different PC and get the required result.
          If the dim isn't executed you get this error..

          ERROR: Variable "network_optimize" not found.
          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


            #20
            Re: Refresh Shadow automatically

            yap Jo, as you can see there is a space on my reply post#17, which I copied from the interactive window.Sometimes Jo, being a beginner in alpha five, if something goes wrong, what i thought for sure is I made the wrong code, which in desperation i searched for alpha wiki and samples on this forum, or immediately post the question,then if i found a code and tried to implement it in my own by copying and pasting which i don't get the desired result, With this situation, I am not encouraged to do things on my own because I will be doubting if I still can get the desired result (Sometimes not Always). The last statement is just a plain opinion, And it's good that we have this Forum, without it, I'm sure of myself that I can't use Alpha five as my development tool because unlike C# or VB .NET, codes are everywhere, Maybe someone will say, Why not go for c# or VB then? Well, Alpha five is much easier to learn but sometimes can get me stuck for days in some simple problems. back to reality, I just want the code above to check for version number before refreshing the shadow, other than that, i can refresh the shadow with Refresh_Shadow().

            Comment


              #21
              Re: Refresh Shadow automatically

              Al, I'm pretty sure you are talking about executing the code in the Interactive window, I don't want the client to go to the interactive window to press enter, the code needs to run from a function called on a button. And I get that error when the function is executed. And for some reason, i'm not getting that error anymore, instead i get a result like this. "= <Has no sub-properties> "

              Comment


                #22
                Re: Refresh Shadow automatically

                Jetson,

                I understand what you are going through, I took me quite some time and a lot of reading to come to this solution.
                The purpose of this function is to automatically refresh a Shadow DB once the version number is changed on the Master DB.
                As explained in the first post the function is called in the autoexec script, so the client (shadow) will detect a new version and the Refresh_Shadow is executed and the usual refresh window pops up, showing the progress. You as the developer take care of the Master DB and the settings for Network Optimization.
                I cannot remember if I may have overlooked something that might cause the error but one thing I recall is that I had an operational situation in which the Shadows were updated once the version number was increased in the Network Optimization settings on the Master.
                So my advice is to do the following as a matter of test:
                - Set the Network Optimization settings as shown in attached picture;
                - Create a Shadow;
                - Test if Shadow actually works fine;
                - Now increase the version number on the Master DB in the Network Optimization settings;
                - Restart the Shadow and see if the shadow refresh is triggered automatically.

                If all this works fine, that should be your basis to start again with the first post in this thread.

                Best of luck,
                Attached Files
                Jo Hulsen
                Dommel Valley Solutions
                The Netherlands

                Comment


                  #23
                  Re: Refresh Shadow automatically

                  Has anyone noticed that if you set your version number to reflect a date (YY.MMDD) you lose any trailing zeros? I tried this function today for version 12.0710 and it returns 12.071. I am also setting a character field with this value to display on a form, but using val(myvers_no) unfortunately does the same thing. I don't suppose there is a way around this since the app version number is a numeric field?
                  Robin

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

                  Comment


                    #24
                    Re: Refresh Shadow automatically

                    Robin,

                    There should be an easy way around that.
                    Why don't you consider the format YYYYMMDD and enter 20120710? I would guess that the way the number is stored isn't really important but you want it to be displayed correctly. For that purpose you could use a date formatting/conversion function.
                    Example:
                    dim version as n
                    version = 20120710
                    dim vrs as c
                    vrs = str(version,8,0)
                    ?stod(vrs)
                    = {10-07-2012}
                    Jo Hulsen
                    Dommel Valley Solutions
                    The Netherlands

                    Comment


                      #25
                      Re: Refresh Shadow automatically

                      Robin,

                      Yes, I can confirm the trailing zeros drop off. I currently do not use the same scheme as you do. I skip versions ending in 0 i.e. - 1.159, 1.161 (skipping 1.160)

                      I am sure there is probable a workaround.

                      Scott

                      Comment


                        #26
                        Re: Refresh Shadow automatically

                        Jo,

                        What am I missing here? How is what you are doing with your function significantly different or better than just using the option to Automatically update the Shadow Database when the version changes?

                        Raymond Lyons

                        Comment


                          #27
                          Re: Refresh Shadow automatically

                          Raymond,

                          It's not that it is better. The Alpha option to Automatically update the Shadow Database is aimed at automatic detection of a new version.
                          The end user however needs to confirm whether or not the Shadow will actually be updated. I simply wanted to avoid end user intervention.
                          I use this function in combination with a version management tool as mentioned in post #3.
                          Jo Hulsen
                          Dommel Valley Solutions
                          The Netherlands

                          Comment


                            #28
                            Re: Refresh Shadow automatically

                            Got it. Thanks.

                            Raymond Lyons

                            Comment

                            Working...
                            X