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

Embedded browse problem

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

    Embedded browse problem

    Hello all
    I have an embedded browse on a form. The browse has data from child records of a set (including data from 1 to 1 related tables to child).
    During data entry, when I change some fields on the browse (not link fields) some other fields change to the wrong values. Sometimes just scrolling or moving through the rows the field values change. I have recreated the tables and the from many times to eliminate the chances of corrupted table or form. I am new to Alpha .I switched to alpha after many years of using Paradox .I can�t figure this Problem out .I have spend days trying to slow this puzzle .I appreciate any help I can get

    Thanks.

    #2
    Re: Embedded browse problem

    Can we have a sample Nick?
    Upload the problem database for a quicker response.
    See our Hybrid Option here;
    https://hybridapps.example-software.com/


    Apologies to anyone I haven't managed to upset yet.
    You are held in a queue and I will get to you soon.

    Comment


      #3
      Re: Embedded browse problem

      Nick,

      Does your set include any child tables linked using a one-to-many link?

      If so I'm thinking maybe what you're seeing is the result of Alpha's effort to display the "composite" records in your browse.

      Comment


        #4
        Re: Embedded browse problem

        Here is the database .name of the form with the problem is "shipment_details".The set is called shipment_set.
        I have at the end of my wits .I thank you for the help.
        Attached Files

        Comment


          #5
          Re: Embedded browse problem

          Nick, I've had a good fiddle with this and would suggest the following.
          1) Create a Browse and embed it in the Shipment Details Form - do not rely on the default embedded browse
          2) Do not change data in the Browse. You can open the Form which requires editing using OnDblClick Event in the Browse.
          Given the complexity of your Set, allowing editing will cause you grief. If you have to allow edits, add a Refresh on Save.

          I was unable to work out what is wrong as you gave no instructions, and the browse is not editable. What should I be doing?
          See our Hybrid Option here;
          https://hybridapps.example-software.com/


          Apologies to anyone I haven't managed to upset yet.
          You are held in a queue and I will get to you soon.

          Comment


            #6
            Re: Embedded browse problem

            Originally posted by Ted Giles View Post
            Nick, I've had a good fiddle with this and would suggest the following.
            1) Create a Browse and embed it in the Shipment Details Form - do not rely on the default embedded browse
            2) Do not change data in the Browse. You can open the Form which requires editing using OnDblClick Event in the Browse.
            Given the complexity of your Set, allowing editing will cause you grief. If you have to allow edits, add a Refresh on Save.

            I was unable to work out what is wrong as you gave no instructions, and the browse is not editable. What should I be doing?

            Comment


              #7
              Re: Embedded browse problem

              Nick, if I were troubleshooting this, I'd rebuild the browse.

              I'd begin by putting the columns from the child table in first, then add columns from the grand children and great grandchildren in order from left to right.

              I'd test the behavior of the form after each table's columns are added to the browse.

              Having said that I'd echo Ted's good advice. You will very likely have trouble using a browse like this for data entry. Might be handy for read only display, but do your edits using other, simpler forms. Dr. Wayne's article remains good advice. Look for an article called "simplify your application for better performance" at www.learn alpha.com.

              Comment


                #8
                Re: Embedded browse problem

                Scroll around the leftmost 5 columns and lower rows - I see the top row and occasionally the 2nd change to match the selected one.
                I cant isolate it. I removed duplicates in Lots to try but that leaves blanks.
                I would look at the data in flattened browse format (default view of the set - switch form to browse, and see if it look as as expected.
                As Ted says its a complicated set of linkages and the use of them all is unclear to me.

                Edit - I didn't see Tom's entry.
                Last edited by Ray in Capetown; 05-17-2012, 03:01 PM. Reason: Toms entry

                Comment


                  #9
                  Re: Embedded browse problem

                  Thanks Ted, I tried resync and refreshing the form on save but is does not work.
                  Thanks Ted, I tried resync and refreshing the form on save but is does not work.
                  If you say that the set is not editable then I go with your suggestion of editing the record from another from.
                  It would be much better if I could have edited the size fields on the set.
                  Do you think of I do not edit the set ,the set would be reliable to show correct data?
                  Thanks again

                  Comment


                    #10
                    Re: Embedded browse problem

                    Nick, you can edit the size of the fields in the individual tables and the set will pick the changes up.
                    "Sets" are created when you open the set itself. The tables remain separate, so you cannot change the field content in a set, only in the tables.
                    If you have built a from with a field width of 10 characters and then change it in the table, the form needs to be changed as only 10 characters will be displayed. These type of changes are not cascaded.
                    It's easily done (Field Properties) but also easy to for get to do with amusing hair pulling out when you forget, and can't work out what's gone wrong!

                    (If the field you change is a linking field you may want to make the other table link the same size as well.)

                    Just reread. You are referring to the Field Name SIZES?
                    See our Hybrid Option here;
                    https://hybridapps.example-software.com/


                    Apologies to anyone I haven't managed to upset yet.
                    You are held in a queue and I will get to you soon.

                    Comment


                      #11
                      Re: Embedded browse problem

                      Ted, Thank you for all your help .I have one more question if you can spare the time to answer it .
                      I am thinking of forgoing the data normalization and put some fields from the “lots” table and the “models” table in the “styles” table this would make my data models less complex . If I do this on some rare occasions if some of the existing “models” or “lots” are changed I will need to cascade the change in the “styles” table. What is your opinion about doing this ?If I implement this change can I use the “Field-rules” of the “models” and “lots” table to cascade the changes in the “styles” table?

                      Thanks ,Nick

                      Comment


                        #12
                        Re: Embedded browse problem

                        Hi Nick,

                        I noticed in the form properties of your Shipment Details form that you're sorting the child table on fields from the grandchild and great-grandchild tables. I've tried that in a couple apps that I've built, and it has caused the same issue you're experiencing. We weren't using the browses for data entry, but when the browse was sorted on a field that wasn't in the head table of the BROWSE (i.e., the child table in your set), it caused randomly-changing field values when scrolling through the browse. Unfortunately, the issue doesn't necessarily show up every time you view the browse, so I haven't succeeded in pegging it down enough to submit a bug report. Oddly enough, back in version 8 and prior, sorting on grandchild fields worked just fine. When Alpha re-wrote the browse control for one of the new versions (can't remember if it was 9 or 10) the feature broke.

                        Sorry not to be able to offer a solution, but at least that helps understand at least one source of your trouble.

                        -Jason

                        Comment


                          #13
                          Re: Embedded browse problem

                          Thanks Jason
                          So if I use the fields in the child table to sort the form ,I would be ok for display only from?What do you think having a less normalized database(please my post to Ted)?
                          Thank you for the info .
                          Nick

                          Comment


                            #14
                            Re: Embedded browse problem

                            This is what I'd do Nick.
                            I'd make the Shipments Details table a lot bigger with all the relevant information in it.
                            I'd have Lots and Models information in it, and these would be populated using a Lookup on the Fields which gets data from the Lots, Models and Styles Tables.
                            Then you will be able to create a more simple set for the Shipments.

                            What you have tried to do doesn't really hang together. IMHO, the Shipments table is really a separate entity and should not change if the detail in a Model table changes, which is what the set you currently have is trying to do. The Shipment is what it says - what was sent at that point in time, so it's a bit like an invoice - it needs to be locked down at some point.
                            Your design at present seems to reflect changes in the various tables to be reflected in th Shipments details.
                            See our Hybrid Option here;
                            https://hybridapps.example-software.com/


                            Apologies to anyone I haven't managed to upset yet.
                            You are held in a queue and I will get to you soon.

                            Comment


                              #15
                              Re: Embedded browse problem

                              I agree with Ted, you can probably capture all of the relevant data for a specific shipment in the shipment details table without considering it de-normalized.

                              As far as storing Lot and Model info in the Styles table, I don't know enough about why your data is structured the way you have it to comment much. Personally, I wouldn't de-normalize any further than you need to, to make the system work. I suspect the most frequent change in the Styles/Models/Lots set is that one lot gets used up and a new lot of the same model is received, so you change which lot the style uses. That's a guess. At any rate, it is theoretically possible to use field rules to propagate changes from one table to another, but for something like that you'd most likely need to use the Xbasic canEditRecord, canEnterRecord, & onSaveRecord field rules--the first two to grab the starting values of the fields & store them in a variable, the last one to perform the query and update on the target table. It could be simpler to build the functionality into the form that you do the editing from than to use field rules. That's my two cents, but Ted & Tom have been at this a lot longer than I have, so if they comment on the issue, it's probably worth a lot more.

                              -Jason

                              Comment

                              Working...
                              X