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

Record Order Problem for Version 4.03

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

    Record Order Problem for Version 4.03

    I have a database that 24 people use. They all have runtime loaded on their computers and the files are on the network. The Activity form is indexed on Last Name and Activity Date. I have a find by key button on the form that lets the user enter a last name to move to the record with the first activity date of that person.

    When a person first enters the form, the index works fine. When they enter a record, and then enter their name using the find button (to check to make sure it is there), the record that they just entered is not sorted by name, it remains at the "end" of the records for the table. When they exit the form and then go back into it, the "new" record is indexed and in the right location by name. This is very frustrating for the users and many times they reenter the information because they think that they lost the entry they just finished.

    I'm not sure how to fix this problem. I've several other applications and databases that don't do this. Can anyone give me an idea of where to start?
    Kristi

    #2
    RE: Record Order Problem for Version 4.03

    I believe this is an indexing issue. I have some data entry screens where lookups etc do not work EXCEPT when the active index is on record number order. I can scroll and view data fine, but in data entry mode things don't keep current. I finally set the index to RECNO() in the form OnInit event to help with this.

    I expect refreshing a query as data is entered will solve your problem.

    I upgraded to 4.5 and I am finding the index lookup functions are working much more reliably. One I simply suffered (a filtered table lookup, filter depending on the item code entered) suddenly works exactly as I intended.

    I would pay the $178 to get the upgrade before I went further...

    Comment


      #3
      RE: Record Order Problem for Version 4.03

      Kristi,

      I don't know exactly what is going on but here is something which might help you to figure it out.

      What you are seeing what would be expected in a list based on a query. Remember, indexes are dynamic and queries are static. Generate a query list of all names beginning with "A" and then add a name which starts with "B". You will see this name even though it doesn't fit the query. If you were then to refresh the query the name beginning with letter B would no longer be there.

      Forms with an order expression generate their own query list and refresh it based on certain events. Your observations fit this pattern because as you say, when they exit and reopen the form the list is refreshed.

      If you post your application I am sure someone can figure out how to make the display update when you need it to. For starters, does your form properties include an order expression?

      Bill
      Bill Hanigsberg

      Comment


        #4
        RE: Record Order Problem for Version 4.03

        Bill,

        Yes it does include an order expression. Is that my problem?

        How do I keep my records in last name order without using the order expression for the form? I have 24 people using the application with varying degrees of expertise, and it makes it easier for them to see all of their records grouped together by date.

        I would be happy to post my application, but I don't know how.

        Thanks,

        Kristi
        Kristi

        Comment


          #5
          RE: Record Order Problem for Version 4.03

          Stephen,

          Thanks for the information! If I upgrade to 4.5, how does that affect my users who have runtime on their machine?

          Thanks,

          Kristi Kupka
          Kristi

          Comment


            #6
            RE: Record Order Problem for Version 4.03

            Kristi,

            "When they enter a record, and then enter their name using the find button (to check to make sure it is there), the record that they just entered is not sorted by name, it remains at the "end" of the records for the table."

            When they enter a record and save it the record should be on the screen right in front of their nose. Why do they do a find? Obviously, there is something about the situation I haven't grasped. Can you help?

            As for posting your application (or any other file) to the board, use winzip to compress it and when posting a new message or a reply click on the "attach file" button. Browse to your zipped up file and click on it.

            Bill
            Bill Hanigsberg

            Comment


              #7
              RE: Record Order Problem for Version 4.03

              Bill,

              The process is that they enter their activity record so that we can track number of miles, meetings, etc. Then they click another button that takes them to a different form that they enter and print to be reimbursed for travel expenses. The problem happens when they return to the original form after filling out the reimbursement form and their record is gone.

              Clear as mud?

              Kristi
              Kristi

              Comment


                #8
                RE: Record Order Problem for Version 4.03

                Kristi,

                "The problem happens when they return to the original form after filling out the reimbursement form and their record is gone."

                Try this:

                When they come back to the original form have them press F5 to refresh the form. If this results in the records ordering correctly then the solution will be to put the code
                this.refresh()
                on the original form's on_activate event.

                If not, we'll have to look further.

                Bill
                Bill Hanigsberg

                Comment


                  #9
                  RE: Record Order Problem for Version 4.03

                  Looking at you original post I am not so sur an upgrade will fix your particular problem. Mine related to a conditional table lookup. The lookup went to the same table, the condition related to filtering on that lookup. Filtered indexes were causing problems under 4.03, but it works exactly as intended under 4.5. I think your problem is a little different, and I think Mr Hanigsberg has some more relevant leads. Many Alpha developers are struggling with keeping the display current with the data. Even on single computer set ups.

                  If you upgrade you need two -
                  1. Alpha Five full version $79
                  2. Alpha Five 4.5 runtime $199
                  Total $278.
                  I have no idea how applications modified with 4.5 would run on the 4.03 runtime... I would get both. But if you have 24 users $278 is a steal to get everyone up to the latest.

                  One comment - I see Cian (Alpha Software programmer) has posted some replacement dll's for v4.5 on this board, so there will be patches coming out. I got my copy by download. Hopefully Alpha Software could keep this source completely up to date...

                  Comment


                    #10
                    RE: Record Order Problem for Version 4.03

                    Bill,

                    Pressing the F5 key does work, so I'll try the code, but I think that you've solved my problem

                    Thanks so much!!!!

                    Kristi
                    Kristi

                    Comment


                      #11
                      RE: Record Order Problem for Version 4.03

                      Thanks for the information. You are right, $278 is no money. I'll have to try the new version.

                      I appreciate the time you have spent trying to help me.
                      Kristi

                      Comment

                      Working...
                      X