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

Resynch or Refresh (or resign)?

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

    Resynch or Refresh (or resign)?

    I have a field which, via field rules, accesses a lookup table. It works fine if I'm selecting an existing record.

    In the lookup table I can enter a new record via my own form. That works fine.

    When, in the above form, I save the new record, I'm returned to the lookup table, with the cursor on the new record, which appears to have been stored correctly. All, again, seems fine.

    However, when I click on that record it is not "carried back" to the field we started from. I have to select the lookup table again, when I can go to the recently-created record and select it in the usual way.

    It's as if something needs re-freshing, or re-indexing, or something. I suspect it's something to do with Resynch() but there's only a very brief mention of it in the manual, and I'm not sure where it should go. I've tried putting parent.resynch() after commiting the "New Record" form, but I get the message: "Arguement is incorrect data type".

    Any takers?

    #2
    RE: Resynch or Refresh (or resign)?

    Martin,

    I'm a bit confused when you say lookup table. You said, "In the lookup table I can enter a new record via my own form. That works fine.

    When, in the above form, I save the new record, I'm returned to the lookup table, with the cursor on the new record..."

    A lookup table is just that, you program the field rule to a lookup table and when in the field in the form, you can go to the lookup table and select a record and then return to a form. If the check boxes are checked, you can add records to, edit or delete records from the lookup table while you're in the lookup table.

    I don't understand what you mean by "I'm returned to the lookup table". Sounds like you're going backwards.

    kenn
    TYVM :) kenn

    Knowing what you can achieve will not become reality until you imagine and explore.

    Comment


      #3
      RE: Resynch or Refresh (or resign)?

      Hi Ken,

      >>If the check boxes are checked, you can add records to, edit or delete records from the lookup table while you're in the lookup table.

      Comment


        #4
        RE: Resynch or Refresh (or resign)?

        When you have entered your new record and returned to the lookup list, try pressing F5. This should refresh the list so that you can select your new item. If this works try using sys_send_keys("{F5}") to automate the refresh.

        Gren Brown.

        Comment


          #5
          RE: Resynch or Refresh (or resign)?

          Martin,

          By "adding a record via my form B", are you referring to the default form that Alpha goes to for adding the record?

          When you're back at the lookup table, how are you trying to select the record? Do you mean the new entery is not able to be highlighted or if after highlighting the new entry and either clicking OK or double clicking the new record, you are returned to your mofr but the selection doesn't follow?

          kenn
          TYVM :) kenn

          Knowing what you can achieve will not become reality until you imagine and explore.

          Comment


            #6
            RE: Resynch or Refresh (or resign)?

            Gren,

            While this may be a work around for him, it shouldn't have to be done. With the new record highlighted or having focus, he should only have to click OK or double click the new record.

            kenn
            TYVM :) kenn

            Knowing what you can achieve will not become reality until you imagine and explore.

            Comment


              #7
              RE: Resynch or Refresh (or resign)?

              >> By "adding a record via my form B", are you referring to the default form that Alpha goes to for adding the record?> When you're back at the lookup table, how are you trying to select the record? > Do you mean the new entry is not able to be highlighted > or if after highlighting the new entry and either clicking OK or double clicking the new record, you are returned to your form but the selection doesn't follow?

              Comment


                #8
                RE: Resynch or Refresh (or resign)?

                Nope, nothing happens when I press F5. Also (I've just noticed this) although I'm returned (from adding the new rec.) with the new record highlighted in the lookup table, I can't scroll ABOVE it, but I can see and scroll down the table. It seems as if the table (but not the buttons above) is "locked" in some way. If I was doing this in a language I'm more familiar with, I'd guess that an index is corrupted or not updated and that the system has "lost it's place" so to speak.

                But, I don't really know how to test this in A5 (I've tried re-building indexes).

                ????

                Martin.

                Comment


                  #9
                  RE: Resynch or Refresh (or resign)?

                  Martin

                  Sorry I am not going to be of much help here only to report that I tested what you have described and it works perfectly, this was in Beta. Try this as a test, start again with a two new tables and two new forms in a new DB. One form for each table.

                  Let us now how you get on.

                  Keith Hubert
                  London.
                  Regards
                  Keith Hubert
                  Alpha Guild Member
                  London.
                  KHDB Management Systems
                  Skype = keith.hubert


                  For your day-to-day Needs, you Need an Alpha Database!

                  Comment


                    #10
                    RE: Resynch or Refresh (or resign)?

                    >>this was in Beta

                    NB: This is 4.5, in case anyone was wondering.

                    Did I say that everything works as expected if the default form is used to create new records. But I can't see anything unusual about my own form.

                    Any more thoughts gratefully received.

                    Martin.

                    Comment


                      #11
                      RE: Resynch or Refresh (or resign)?

                      Can't be sure without seeing your app, Martin, but you may need a table.refresh(). Don't bother looking for it in 4.5, it's a new method in version five and would need to be executed after saving the new record on a table pointer referencing the lookup form. See the version five Xbasic docs; the method is decribed there.

                      Comment


                        #12
                        RE: Resynch or Refresh (or resign)?

                        Then it could be that for some reason, the form is corrupted. I haven't a clue what causes a form to corrupt but if it is, you're only choice is to create a new form, which, may be the quickest way to resolve the issue.

                        kenn
                        TYVM :) kenn

                        Knowing what you can achieve will not become reality until you imagine and explore.

                        Comment


                          #13
                          RE: Resynch or Refresh (or resign)?

                          Martin,

                          I have a vague recollection of having had a similar problem and I think I found the solution in the way I was closing the form. If you've been using some type of "Close" button, try closing the form with the "X" in the upper right corner.

                          At any rate, I would check all the actions on the form (possibly even record events?) because I'm fairly certain that some events can cause trouble with popup boxes. Maybe delete them one at a time until you find the problem.

                          (I really should document these issues when I find them but I'm usually so happy just to get things working that I don't bother. Besides, sometimes there have been so many iterations that I'm not really sure exactly what combination fixed the original problem.)

                          Cal

                          Comment


                            #14
                            RE: Resynch or Refresh (or resign)?

                            Martin,

                            It sounds like the form you opened first is holding on to an old copy of the lookup table. This may not refresh because Alpha may never know when and when a user is going to assign a lookup table in field rules. If there isn't an update process for the lookup table, your best bet may be a script that takes the user out of the first form and then restarts the form to refresh the lookup table.

                            Dave

                            Comment


                              #15
                              RE: Resynch or Refresh (or resign)?

                              I have tested this again in 4.5 using the sample Invoice app that comes with, and it works just the way Martin wants.

                              I know ths is not an answer but I think you are all trying to solve a problem that is not there.

                              Keith Hubert
                              London.
                              Regards
                              Keith Hubert
                              Alpha Guild Member
                              London.
                              KHDB Management Systems
                              Skype = keith.hubert


                              For your day-to-day Needs, you Need an Alpha Database!

                              Comment

                              Working...
                              X