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

Field data erased ....

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

    Field data erased ....

    Had an issue today with a user working with app .... she was editing customer data which uses one form to one table(customer). Somehow, all the data fields in the record for a particular customer where erase. Normally I would think it was user or programer(me) error, but user doesnt have access to the key field(customer number) and the program does nothing special. Anyone see behavior like this. Not sure where to start to debug .... went through dozens of edits ... couldnt re-produce myself. user said she edited data ... looked at screen and everything looked good .... hit the save button(executes save record) and everything went blank .... ????

    Any help would be much appreciated ....

    Glenn

    #2
    Re: Field data erased ....

    Can the user delete a record? Have you tried to undelete records? You might want to make a copy of her table and do some careful poking and prodding.

    Comment


      #3
      Re: Field data erased ....

      Tom .... first thing I thought of .... record wasnt deleted .... data just blanked out. How I found this out was by tbl.undelete(1,999999,.t.) to undelete .... no record undeleted .... then I found the blank record.

      Kinda scarey ....

      and no .... they dont have capability to delete ....

      Glenn

      Comment


        #4
        Re: Field data erased ....

        Was the user entering the record through an embedded browse? What build of vers 10 was in use? Might the SAVE BUTTON be running a script that failed? Are there CanSaveRecord event scripts in play in field rules? How about a CanSave event script in the form itself?

        Comment


          #5
          Re: Field data erased ....

          Tom,
          Form was launched off embeded browse ... form stands alone .... just uses customer number from embeded browse to display correct customer in customer form. There is a button to put form in change mode ... once user edits record, there is a save button to execute the save record. Have no idea the sequence she caused to have record get erased .... but like I said, she has no access to key fields ... at the very least, they should not have been erased ... ????

          V10 2814-3539

          Glenn

          Comment


            #6
            Re: Field data erased ....

            Are there any lookup fields she is using from the form, that use table lookups in field rules. And, if so, do they use a drop-down list box? Are there any form gadgets, like combo boxes, etc?

            In converting an app from 8 to 10, I ran into this sporadic behavior, and spent an enormous amount of time trying to debug it. Although I never did find a cause (and another seasoned developer tried to help me find the issue) I found a work-around that works about 97% of the time.

            When I initialize the form (opened as a dialog) (and it is filtered for one record only)

            1. I read into variables the initial values for maybe 10 of the major fields, and then at the commit button check to see if any of the major fields are blank. (And depending on the fields, I then know that the fields have been blanked, and cancel, telling the operator data is corrupted - need to do it again, and close the form.

            2. Two fields, via xbasic, I prevent from EVER being blank. Firstname and lastname. And I have a 1 second timer that checks to see if the fields are blank - and if so, I know it happened, and alert the user, cancel changes, and close the form, immediately, since any further editing is futile.

            I found that using lookups NOT as drop downs made a big difference. I did everything you can think of - including making a new form from scratch. But could never pinpoint the cause.

            I thought about sending a bug report, but because this is a medical app, and there are hundreds of lines of code that fire, decided not to send.

            But if yours is simpler, you may be be able to send a bug report. If there are any lookup fields, repeatedly edit a record and change the lookup values. And the same with form gadgets. Try to be able to recreate the issue at least most of the time so they can, too.

            Note: one of the oddities of this issue is that the fields on the screen do not appear to have been blanked, but if you click on one, it will then be blank, as well as most of the other fields.

            good luck
            Last edited by martinwcole; 05-21-2010, 06:34 PM.
            Cole Custom Programming - Terrell, Texas
            972 524 8714
            [email protected]

            ____________________
            "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

            Comment


              #7
              Re: Field data erased ....

              Martin,
              Thanks for you feedback ... very helpful ... a little scarey, but helpful. On save, I could check to make sure key fields have not been erased ... at least I would feel better that im checking something. I will try to run through and see if I can re-create ... so far, I have not been able to. At least Im not going crazy ... :)

              Thanks again .....

              Comment


                #8
                Re: Field data erased ....

                I think the cansave is where you want to check, but I'm not sure what it will show, or show correctly.

                In my debugging routine, I would check to see if the original record was still the same one on the screen, and it was - so I knew it hadn't jumped.

                You'll have to experiment.
                Cole Custom Programming - Terrell, Texas
                972 524 8714
                [email protected]

                ____________________
                "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

                Comment


                  #9
                  Re: Field data erased ....

                  PS: if possible, post your app here or send it to me with instructions and I'll see if I can reproduce it, because I know it exists. If we could ever isolate the cause, we could get a fix.
                  Cole Custom Programming - Terrell, Texas
                  972 524 8714
                  [email protected]

                  ____________________
                  "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

                  Comment


                    #10
                    Re: Field data erased ....

                    Originally posted by martinwcole View Post
                    Are there any lookup fields she is using from the form, that use table lookups in field rules. And, if so, do they use a drop-down list box? Are there any form gadgets, like combo boxes, etc?

                    In converting an app from 8 to 10, I ran into this sporadic behavior, and spent an enormous amount of time trying to debug it. Although I never did find a cause (and another seasoned developer tried to help me find the issue) I found a work-around that works about 97% of the time.

                    When I initialize the form (opened as a dialog) (and it is filtered for one record only)

                    1. I read into variables the initial values for maybe 10 of the major fields, and then at the commit button check to see if any of the major fields are blank. (And depending on the fields, I then know that the fields have been blanked, and cancel, telling the operator data is corrupted - need to do it again, and close the form.

                    2. Two fields, via xbasic, I prevent from EVER being blank. Firstname and lastname. And I have a 1 second timer that checks to see if the fields are blank - and if so, I know it happened, and alert the user, cancel changes, and close the form, immediately, since any further editing is futile.

                    I found that using lookups NOT as drop downs made a big difference. I did everything you can think of - including making a new form from scratch. But could never pinpoint the cause.

                    I thought about sending a bug report, but because this is a medical app, and there are hundreds of lines of code that fire, decided not to send.

                    But if yours is simpler, you may be be able to send a bug report. If there are any lookup fields, repeatedly edit a record and change the lookup values. And the same with form gadgets. Try to be able to recreate the issue at least most of the time so they can, too.

                    Note: one of the oddities of this issue is that the fields on the screen do not appear to have been blanked, but if you click on one, it will then be blank, as well as most of the other fields.

                    good luck
                    I can second the EXACT occurrence of this behavior. I, like Martin, have the form as modal. I also have spent a bunch of time trying to isolate it. It definitely appears to be related to any field data entry method that is not just a type in field (combo box, data picker, etc.) I also had resorted to the method mentioned to retrieve the values from fields that were getting blanked out and then putting them back right before the save occurs. But, this was just for testing for me....as it is not practical......I would have to re-do TONS of work as this occurs in MANY places. FWIW, this problem does not occur in release 3520.

                    I am planning on submitting a bug report once time permits....for now it is release 3520 for me.

                    Regards,

                    Jeff

                    Comment


                      #11
                      Re: Field data erased ....

                      if you can reproduce the error, please submit a bug report ASAP, before the new release candidate is released.
                      Cole Custom Programming - Terrell, Texas
                      972 524 8714
                      [email protected]

                      ____________________
                      "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

                      Comment


                        #12
                        Re: Field data erased ....

                        Martin .... forgot to ask .... you said your work-around code check worked 97% of the time .... what did you do the other 3% when a record was erased? .... did you have to run error reporting every day to check for records with key fields that where erased? ... and how would you fix?

                        Just wondering ....

                        Glenn

                        Comment


                          #13
                          Re: Field data erased ....

                          my routine prevents the "bad" record from being saved, and restores it to its original condition - I tell the user that "Data corrupted, all changes lost - reenter."

                          So, in a sense, it works 100% of the time - but only in preventing the saving of a "blank" or partially blank record.
                          Cole Custom Programming - Terrell, Texas
                          972 524 8714
                          [email protected]

                          ____________________
                          "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

                          Comment


                            #14
                            Re: Field data erased ....

                            Thanks Martin ..... do you see anything wrong with the code on the cansave event doing the following ...

                            Code:
                            ' =====> check to see if key field has been corrupted and cancel dim vc_check_owner as c
                            dim tblo as p
                            '
                            tblo = table.current()
                            vc_check_owner = alltrim(tblo.owner)
                            '
                            if len(vc_check_owner) < 1
                            	msgbox("Error","Possible data corruption .... Save cancelled     ",UI_STOP_SYMBOL)
                            	topparent.cancel()
                            	cancel()
                            end if
                            Seems wierd that the topparent.cancel doesnt completely stop the save ... I have to add the cancel() as well to completely stop the record from being saved. Cant do without topparent.cancel either because thats what cancels change mode for the form ... hmmmmmm ... is this a cart before horse thing?? ... :)

                            Glenn

                            Comment


                              #15
                              Re: Field data erased ....

                              since you are at the form's "cansave" event, cancel() is like answering "No" to the question "May I save this record?" And then you are cancelling the save with the rest.

                              But I'm not sure whether this will be sufficient - you will need to find out from her how often she gets the message, and whether this will prevent the saving of the "blank" record.

                              I would put the cancel() before the parentform.cancel()

                              The question will be does it also always blank the key field - mine didn't, but blanked most of the rest. So that's why I check several fields, and if they are blank I know "it" happened.

                              I would also recommend closing the form after the action.

                              Have you submitted a bug report, yet?
                              Cole Custom Programming - Terrell, Texas
                              972 524 8714
                              [email protected]

                              ____________________
                              "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

                              Comment

                              Working...
                              X