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

Need help on one to many set

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

    Need help on one to many set

    Hello,

    Ive mad a set with a one to many link. The child table contains item's that are needed parts of a product.

    Often theese part's will change so i delete them from the child table. Every day we copy some data from the parent table with the linked child table (the part's). To expose on our extranet. Before we copy wer pack both table's

    The problem is that all delete child records still exists but the data in those deleted records is gone. only the linking field data call it produktid is filled.

    How can i deleted these already deleted childrecord?

    Every day whe need to delete in a copyied table about 7000 empty records. and it grows every day

    suggestions??

    Martin
    The Netherlands

    #2
    RE: Need help on one to many set

    Hello Martin,

    >>The problem is that all delete child records still exists but the data in those deleted records is gone. only the linking field data call it produktid is filled.

    Comment


      #3
      RE: Need help on one to many set

      Martin,

      I think Jim's right. The key to solving this is understanding how you delete the child records. To me your description of what you wind up with makes me think you are simply blanking out field values in the child table records, without actually deleting the records themselves. This would leave 'empty' child table records linked to your primary table in the set. The only field left with actual values would be the link field, since it's not shown in a set based form, so you couldn't blank it out. Is this what you're doing?

      -- tom

      Comment


        #4
        RE: Need help on one to many set

        Tom,

        I used a different login name. Martin

        I dont have referential integrity turned on, as in this case, it is not wise to do so.

        The thing is, I dont delete de contents of the record, but I really delete the child record itself. When we open the child TABLE, it does not show those deleted records so that seems to go OK. In the table properties statistics those deleted records are NOT counted. They really seem deleted.

        Now the BUT(T) part.

        Those supposedly deleted child records are still there, even after I have packed the table, when I export the table to use it for import in an SQL database.

        Now this is funny. (Actually, it is not). If I then create a report based on the parent child set, those child records, albeit empty, are still there! Is this some kind of caching problem, or what happens in this case, I dont know. But deleting RECORDS instead of CONTENTS doesnt actually delete it from the table.

        And I remind you, REFERENTIAL INTEGRITY is NOT turned on in this case.

        I used a different login name
        Martin

        Comment


          #5
          RE: Need help on one to many set

          Martin,

          Thanks for clarifying. I agree it's definitely not funny.

          The only idea that comes to me is that possibly you have two tables on the network that have the same name. Maybe one on the local workstation, and one on a remote server. If true, perhaps you're deleting records from one copy of the table, but running your export against a different copy, which still has the undeleted records within it.

          I suggest you go to the Alpha Five control panel. Select the Tables and Sets tab. Right click on open white space and choose View. Then Details. This will display the physical path that Alpha Five is using for each table when it opens the database. Make a note of the exact path of the troubled child table.

          Then compare that path with the path you're using in the export operation.

          Are they identical ?

          -- Tom

          Comment


            #6
            RE: Need help on one to many set

            Addendum from Martin,

            It is like Alpha has (next to my own defined Primary Key for the table) it�s own Primary Key for those records, because even my primary key field is empty when I see those records back in my Export.

            My LINKED field, of course not the primary key in the Child Table, is still filled with it�s original value. Note that is extra strange because the automatic index (on the prim.key) is not enforced, because it is empty. I have records without the primary key empty, and it shows my deleted records, without anything in it, except for the linked field. And again: REF. INTEGRITY is off for the SET.

            With regards,

            Martin K. (Not R. Koer :)

            Comment


              #7
              RE: Need help on one to many set

              Tom,

              We are working indeed with a shadow on a local machine and the main app. runs on a network server.

              But when we run the app on the server, deleting child records like we do in the shadow we have the same result.

              For your knowledge we�ve made a script that delete the child records based on a "Xbasic delete record action."

              Thanks for your swift reply
              martin

              Comment


                #8
                RE: Need help on one to many set

                Martin,

                Are there two versions of the database on the server?

                Maybe you network optimized from one, which would create the shadow copy on your workstation. If so, perhaps you're doing the export by opening the OTHER version on the server ?

                -- tom

                Comment


                  #9
                  RE: Need help on one to many set

                  No there is one app. On the local machine the shadow
                  on the server the org. app.

                  martin

                  Comment


                    #10
                    RE: Need help on one to many set

                    Have you compacted the database or at least rebuilt the indexes?

                    Bill
                    Bill Hanigsberg

                    Comment


                      #11
                      RE: Need help on one to many set

                      William,

                      Yes, we allways compact/pack the db before exporting.

                      Could it be that Alpha creates blank child records for parents that have their childs deleted?

                      So let�s say our parents table has 15K records.
                      Our child table has something like ten times as much, 150K records.

                      Now we delete for a subset from the parent table ALL the child records. We then pack both tables.

                      Now we run an export for both tables separately, using a query on it to filter records. We then open those result tables. Now we have in our filtered exported child table blank records where its original primary key and other fields are blank, EXCEPT for the linked field, which is still filled with it original parent ID.

                      We are still clueless here...

                      Michiel Zijlstra
                      Welke Financi�le Diensten

                      Comment


                        #12
                        RE: Need help on one to many set

                        Thanks for the input, this one might be helpfull. While working with our db we just got an error displaying a path to a local machine which was used to build the application.

                        We will post a message if fixing any problems that might be in our db with faulty paths resolves the issue.

                        Michiel
                        Welke FD

                        Comment


                          #13
                          RE: Need help on one to many set

                          Jim,

                          Exactly what kind of problems happend when referential integrity is turned on?

                          I want to make sure orphan child records are deleted. I want to know a little more about your suggestion of creating a duplicate set just for deleting parent records or creating a reverse one to one set. How will turning on referential integrity in these alternate sets not create problems?

                          Thanks.

                          Herbert

                          Comment

                          Working...
                          X