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

Major Problems

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

    Major Problems

    Hi All,

    I have a very strange thing happening here and I will try to stay calm as I explain it since its been a project I have been working on for months now.

    I have a form built on a set that has 1:1 child and grandchild tables.

    It seems that when I enter a new record all is well. When I go to change a field value the change is not accepted and reverts back to the original value.

    There are no event scripts on the form or fields. There are no field rules. The fields are user entered.

    Now here is the strange part. While trying to isolate my problem I created a default form. The new form allowed me to make the changes. I then went back to the old form and it allowed me to make changes. I then tried to compact the database and it showed that one of the child tables was opened. There is nothing on the forms that would have kept the table opened. I then close Alpha and reopen it. Both forms now will not allow the changes but I can do a compact without a open table error.

    I hope and pray someone has a simple fix for this and does not tell me the data base is corrupt. There will be many many many hours wasted if I have to recreate from scratch.

    PLEASE HELP!!!

    Thanks ..

    Scott

    #2
    RE: Major Problems

    Hi Scott,

    Did you check your referential integrity settings in the set where the forms are based on ?

    My first thought would be that something might be corrupted here. It could be something in the process or something in the forms or tables.
    To narrow down sources of trouble, maybe the first thing to do is not only shut down the app, but also shut down Alpha and even reset the computer.
    Try again.
    I also experienced open tables at various moments when trying to compact. Didn't mean anything in my case, always disappeared when the computer was restarted. Only shutting down Alpha not always helped, reason for me to believe something corrupted the memory of the computer.

    Oh and Scott......... yes indeed, backups !
    (sorry couldn't resist. I am backing up constantly here as afraid as I am to loose that much work).

    Succes.

    Marcel

    Comment


      #3
      RE: Major Problems

      Marcel,

      Thanks for the response.

      The problem is definatly with the set, I just don't know what or why. I do have backups, however, I just noticed this problem now, 5 backups later.

      My set is structured this way.

      PARENT
      |
      |----------- CHILD 1:1 link on JID
      | |-------
      GRANDCHILD 1:1 link on OID
      | |-------
      GRANDCHILD 1:1 link on OID
      |
      |----------- CHILD 1:1 link on JID
      |----------- CHILD 1:1 link on JID

      Nothing seems out of order to me, yet once the Grandchild tables are added things go crazy.

      Scott

      Comment


        #4
        RE: Major Problems

        I seen some behavior that leads me to believe there may be some corruption in the index files of the child or grandchild files. Don't just do a rebuild indexe. Delete them and manually re-enter the index tags.
        I use code to do this like:
        tbq.index_create_begin("POL_TRX","POL_TRX")
        index_add("Xposting","POL_TRX + FPT_TYPE")
        index1 = tbq.index_create_end()

        Good luck

        Comment


          #5
          RE: Major Problems

          John,

          Thanks for the advise.

          I have found the problem and it wasn't with the indexes. It was with the field rules of one of the grandchild tables.

          I had several calculated fields of which my calc expression transformed and mutated into something seriously wild. Once I deleted the expressions and made the fields user entered my problem went away.

          I have no idea what happened or why, but that problem is solved and I will figure out a work around to get my calcs.

          Thank you all

          Scott

          Comment


            #6
            RE: Major Problems

            Scott:
            I have seen this sometimes if you insert a firld in the middle of a table instead of at the end.

            charlie crimmel

            Comment


              #7
              RE: Major Problems

              Hi Guys,

              I have experienced this kind of errors as well, I mean errors that occur not because of a program bug, but because of us programming things that can not work.

              That is an issue with Alpha.
              It is that simple to work with, that it invites you to program 'out of the hip'. Create it, test it and see if it works. We all know that such an approach can create huge problems in complex programs. And in the end that is were we all end up: leaving the simple and program rather complex applications with our Alpha stuff.

              Developping does not mean fast-typing-code.
              It means planning and structurizing on forehand.

              Does anybody remember the system flow chart ?
              Don't get me wrong: I am making these mistakes as much as anybody else I am afraid.
              It should get more of our attention though.

              Why not do the math on paper first and really think things over before hitting the buttons ?

              Greetings,

              Marcel

              Comment


                #8
                RE: Major Problems

                Marcel

                Excellent point. Many of us starting by building simple structures for simple needs and then starting adding little additions. The result is like a building with added rooms of many contrasting architectures. The plumbing is a mess, the wiring is a jumble of wires, and there are doors that now go nowhere. But it still works, somewhat.

                Many developers still use this method to build a complex structure. It redefines the term "complex". In some cases, it is unavoidable as a customer wants new features and enhancements. But it is more often the result of poor planning and poor practices.

                The best method is to design the structures first before construction begins. Just as you wouldn't build a large business office complex without plans, building a complex structure to house the data of the business also needs a blueprint. Flow charts and/or process maps are essential. Some design elements may be new and need some "proof of concept" preliminary design and testing - can I make that form in xdialog, for example.

                This means much of the original work isn't writing code or making tables and forms, but sitting down and building "blueprints". You hire the "construction company", the programmer, when you know what to build. A good database designer, which is very different skill than being a good programmer, starts by verifying the needs and goal of the end user. Then some sketches are made of the concept. When the user approves the concept sketch, then the building design parameters and specifications are established. Finally a detailed blueprint is done, with all of the wiring and plumbing. There is one more step before construction starts, and that is establishing the timetable and construction process flowchart. Finally, construction (programming) begins.

                When the end user was us, it didn't matter if the process didn't work smmothly, or the end result had patched "wiring". We were only wasting our own time and money and could fix the wiring when it didn't work. But if you are selling the building, patched wiring and plumbing doesn't work. A simple home doesn't need the complex design of an office building, but it still needs some design and blueprints.

                Would you buy a car with a different size tire on every corner, and a different color on every fender? Sorry, there was no room for the headlight on the front, so I put it on a stalk on the roof. That is what many programs look like without planning and design. It is called database design, not database construction, for a reason.

                Jerry

                Comment


                  #9
                  RE: Major Problems

                  Marcel & Jerry,

                  I totally agree with you 100% about having a plan.

                  Just to clairify what happened to me in my case.

                  My calculated fields were defined in field rules to simply calculate the extention price of a product. The field was called PTOTAL and the "complex" expression was pprice * pqty . The fields were tested and worked as they should.

                  Somehow during further development of the application, my "complex" expression mutated on its own to something like LOOKUP("PRODUCTS","PID_NO="+CHR(34)+PID_NO+CHR(34),"PPRICE")*PRODUCTS-"PPRICE

                  The expression was all in caps as shown, which is not how I enter code. I suspect, but can't prove, that during the course of the different patches, some how this was changed automaticly. I do remember a patch that had carried some of the old style set linking into it which cased 1's to be added to table names. This is where I think the problem occured.

                  I am not blaming Alpha for this or anyone else, but I feel that both your posts slightly hint to my poor planning or poor design, which in this case is just not so.

                  Sometimes things happen beyond anyones control. I was lucky enough to track and isolate the problem thanks to my backups.

                  What have I personally learned from this?
                  1) BACKUPS ARE LIFESAVING (Like we all didn't know this already)
                  2) When a patch is applied, test everthing ALL over again before continuing development.
                  3) Even though it worked yesterday, test it again today.

                  Scott






                  Comment


                    #10
                    RE: Major Problems

                    Scott

                    I was making a generic statement and I think Marcel was also. Some on the board have been a little touchy lately, but I certainly didn't intend it as a comment on your issue or work style. Obviously, you used good troubleshooting and found the problem.

                    We all fall victim to the problems of complexity. Many times I make a change and don't record it, or change the plan in midstream and forget to make corresponding changes. Some have taken months to show up. Any possibility that you tested a similar expression at one time, but deleted or changed it? Do you have a similar expression anywhere on a form or other code? Perhaps attached to an object with the same name as the field?

                    I don't see any reason a patch could have made the change. Alpha might change the capitalization in an expression or other saved code. However, a corrupted data dictionary certainly could result in weird stuff happening since that saves the field rules as well as layout designs, etc. Every time I think I have seen the strangest result from corruption in either my code or someone elses, another oddity pops up. That isn't the developers fault or the programs fault, it is just something that happens from circumstances. That is one of the reasons compacting during design is so important (soap box time)

                    Jerry

                    Comment


                      #11
                      RE: Major Problems

                      I am sorry if I came across wrong ... I didn't mean to be touchy.

                      Just frustrated

                      My Apologies to the board.

                      Comment


                        #12
                        RE: Major Problems

                        Scott

                        No apology needed. I think you posts were quite appropriate and being frustrated when something seems to stop working for no apparent reason is a natural response. Sometimes followed by anger, throwing of small objects......

                        Jerry

                        Comment


                          #13
                          RE: Major Problems

                          Totally not a problem Scott.
                          Indeed my remark was meant to be general here.
                          The remark was made, because I struggled with serious strange behaviour in embedded browses myself this week, and ended up concluding that it wasn't Alpha that caused it, but my lack of planning.
                          So it was sort of meant as a self answering question getting focus back to planning.
                          It was not meant to specifically be an answer to your situation.

                          I guess some critic remarks can be made to the patch-policy of Alpha. In the past we have seen patches following up eachother to fast in order to repair patches with problems. Looks like Alpha has a planning issue themselves, I hope they don't produce patches 'from the hip'. I always install patches the moment I see them.
                          Maybe it would be wiser to wait a little and see if something serious comes up with a new patch, and install it if not. I know you can always get back to an older patch, but time is precious.....

                          This forum is most of the time handling ad hoc problems, I for myself would like some more theoretical or general issues as well, like the comment of Jerry. Most things I knew, but not all, and it gets you back thinking again.
                          I have something like a masters degree in accounting and in my education also got wiser on informatics. But knowledge is very rapidly getting older in that field.
                          Can't hurt to keep eachother up-to-date.

                          Have a good weekend guys,

                          Marcel


                          Comment


                            #14
                            RE: Major Problems

                            throwing of small objects......my a**!

                            You mean like throwing my computer through* the window!
                            :)



                            *as contrasted with throwing out the window, which implies you actually opened the window first.
                            Peter
                            AlphaBase Solutions, LLC

                            [email protected]
                            https://www.alphabasesolutions.com


                            Comment


                              #15
                              RE: Major Problems

                              Planning, Design and Outline have very real pragmatic advantages for billing as well. Speaking only for myself, my temptation is to work harder and make problems dissapear rather than describe them.

                              This practice can really create a communication gap with your customer\employer. You may believe yourself to be really going the 'extra mile' out of dedication but all your client knows is they can't reach you and the product hasn't arrived.

                              Some of my friends swear by a 'functional spec' of a program before writing begins. That is a mock up of each screen, basically every button, where things are and what they are going to do. The spec is sometimes more work than the program because it is written to include the needs of the customer. They collect half their fee upon agreement on the functional spec.

                              What systems do you folks use????

                              Bo

                              Comment

                              Working...
                              X