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

Faulty field when changing table structure

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

    Faulty field when changing table structure

    Hi

    We have a table with 197 fields.

    When altering fields in this table we found that it slowed down Alpha 5 (operations go slow, mouse clicks are slow, menus are sluggish when accessed). We found that this issue was only corrected if after any table change we go into the field rules, save and exit. This makes everything run at normal speed. Still not sure why but went with this 'fix' as it was the only thing that worked!

    However we were changing one particular field name the other day and this 'fix' did not work. After trying many different things we have found out that we cannot rename the field or delete the field as it causes everything to run sluggish again. However if we changed the field size or type and then go into Field Rules this is fine and works at normal speed. The only thing we appear not to be able to do is rename or delete it.

    It seems like this particular field is faulty. We haven't tried all of our other fields but have tried a few others at random and we can change the names etc okay as long as we use our 'fix' afterwards. Therefore it appears to be just this one field at the moment.

    Has anyone come across anything like this before?

    Thanks

    #2
    Re: Faulty field when changing table structure

    Can't say that I have. You know of course its not necessary to rename a field just to change how the field is labelled in a form or on a report, right? You also know that fieldnames cannot contain "illegal" characters and should not match any of the "reserved words" Alpha set aside for its own use, right?

    How about showing us the original fieldname, and then the "new" name that's giving you trouble?

    -- tom

    Comment


      #3
      Re: Faulty field when changing table structure

      Hi Tom

      Yes we know that we don't have to rename them but some of the fields in this database are attached to a code we are using and out of tidiness we wanted to rename this one as we had missed the code off. We then had this issue and felt that we did not want to leave the field in the database if it was faulty for any reason.

      The field name is ACTION_TAKEN and we want to rename it to ACTION_TAKEN_IN10

      Where would I find a list of the illegal characters and reserved words please? We have heard about them a while ago but don't know the exact words.

      Thanks

      Fiona

      Comment


        #4
        Re: Faulty field when changing table structure

        Here's a quote from the helps concerning fieldnames:

        Table and Field Names

        Alpha Five recommends that table names, field names, and paths to your files start with a letter (A-Z or a-z) and be composed of letters, numbers (0-9), and underscore (_) characters.

        NOTE : Do not use tilde "~" or "@" characters in table names, field names, and paths.


        Here's a link to the "reserved words".


        I don't see anything wrong the original field name you were using.

        Comment


          #5
          Re: Faulty field when changing table structure

          As a note, alpha also recommends 10 characters or less for field names.
          Dave Mason
          [email protected]
          Skype is dave.mason46

          Comment


            #6
            Re: Faulty field when changing table structure

            Thank you Tom. No the field seems fine, seems no different from any of our others so really stuck on this one.

            Thank you Dave. Our field name is more than 10 characters but so are a lot of our others but I will look into it and see if its anything to do with it, although we have used more than 10 in a lot of other databases with no issue.

            Comment


              #7
              Re: Faulty field when changing table structure

              the ten characters won't affect your problem. It is a precautionary deal. If corruption occurs, your field names will be shortened to 10 characters for you. I have had it happen. The app will either not run or run to a degree with error(s) flying up everywhere depending on how many misnamed fields.
              Dave Mason
              [email protected]
              Skype is dave.mason46

              Comment


                #8
                Re: Faulty field when changing table structure

                Are there any indices involving that field?

                Comment


                  #9
                  Re: Faulty field when changing table structure

                  Adding a new field to the end of a table is usually not a problem. But changing a field name sure can be. I had this happen just the other day - the change just wouldn't 'take'. What did work was to add my new field at the end, save and close, then after remapping my forms and indices; go back and delete my old field name. Compacting the table when you are done is also a good idea.
                  Robin

                  Discernment is not needed in things that differ, but in those things that appear to be the same. - Miles Sanford

                  Comment


                    #10
                    Re: Faulty field when changing table structure

                    I don't understand not being able to change a field name like you are describing. I just change over 400 field names in a bunch of tables to get them all to 10 characters for a client with absolutely no problems. Still working on the mapping issues for forms, reports, scripts, etc. Will be for a couple of weeks.

                    Is it possible another field is dependent on that one for a field rule or something like that?
                    Dave Mason
                    [email protected]
                    Skype is dave.mason46

                    Comment


                      #11
                      Re: Faulty field when changing table structure

                      Hi Dave,
                      No problems except mapping issues for forms, reports, scripts, etc. you say? Why does it sound so easy when you say it?

                      It may have been a field rule, though I can't remember now. Mostly, I think it has to do with having upgraded an old app thru several versions. The other thing that happens to me frequently during development seems to be memory corruption - where Alpha seems to lose some system functions. So I try to be careful when doing things like this. Eg, I have learned to save and close my work thru the menu system and not just pop an edited form into view mode like I see Selwyn do on his videos. I suspect in his videos, there is no real data to corrupt...

                      TO FIONA:
                      Naming a field ACTION_TAKEN_IN10 may not be unique enough since the first 10 characters will be ACTION_TAK. I would probably shorten that to ACTAKE10 or something similar.
                      Last edited by MoGrace; 10-31-2014, 02:58 PM.
                      Robin

                      Discernment is not needed in things that differ, but in those things that appear to be the same. - Miles Sanford

                      Comment


                        #12
                        Re: Faulty field when changing table structure

                        Hi Robin.

                        I did not mean to pass off the work as quick to do. This app is an older one that I got involved with and found all the field names that were added over the years with many being 20+ characters long. Tables that were close to a gig and a half. I had to split 2 very large tables(one having 400 fields in it) because I don't like over 100-150 tops per table and one that had a very high number of records in it(already at 837000).

                        That means rebuilding sets, using "copy to" on forms, reports, etc., redoing almost everything and yet try to give the users a similar look and feel. I have found almost a 50% increase in speed so far with most of it using full sized data, so headed in the right direction.

                        A lot is being redesigned to accommodate the users click and type methods. They were kind enough to make movies of what they are doing using Jing, so I know what is supposed to happen. I can do a lot of the mundane stuff for them with fewer user mistakes as it progresses.

                        This was also in version 8 and going to 12, so much of the code works, but once opened for a minor change has to be re-set to v12 standards. Amazing a script works in v12 until you change 1 thing and then it does not once you save it in v12. I knew from the past this would be the case though.
                        Dave Mason
                        [email protected]
                        Skype is dave.mason46

                        Comment


                          #13
                          Re: Faulty field when changing table structure

                          Dave,
                          Since I now have 2 'mirrored' apps, I am considering duplicating everything but the data and using that to make my changes then port over to the working apps.

                          Still thinking that idea thru...
                          Robin

                          Discernment is not needed in things that differ, but in those things that appear to be the same. - Miles Sanford

                          Comment


                            #14
                            Re: Faulty field when changing table structure

                            The first install to the client will be empty tables with no field rules and just appends to get the data in unhampered. That should take about 30 minutes doing one table at a time.
                            Then install the rest of the app(the supporting files and indexes) with a compact to bring it all to date.
                            Then they have to install the runtime on 40 computers. I make that very easy for them with a self running(mostly) install. It puts a start icon on the desktop.

                            I am thinking seriously about using three sizes of forms because they do run several resolutions and some are laptops. Peter wayne and a couple others gave a neat way of doing that.

                            Sorry, I am working the installs through my mind as I go here. It helps to type it out.
                            Last edited by DaveM; 11-01-2014, 12:51 PM.
                            Dave Mason
                            [email protected]
                            Skype is dave.mason46

                            Comment


                              #15
                              Re: Faulty field when changing table structure

                              Thanks for your replies, a couple of us are in next week and going to try some of the above.

                              Comment

                              Working...
                              X