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

Find Text shuts down alpha

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

    Find Text shuts down alpha

    I am not too crazy about using "Find Text" since it's a slow querry, but I decided to use it for the time being until I come up with a better routine.
    The context:
    A table of contact information with multiple telephone number fields (Home, Bus, cell etc.)along with a number of other fields.
    The objective:
    When someone calls and as a new record is being added with the caller's telephone number, a CanDepart event of the telephone field will search the current table for the same tel number for further actions.
    The current solution:
    Not the best,I have not given it too much thought as I am more focused on other aspects of this program development than this one item: Text Search will search for the number in All fields.
    The problem:
    This worked fine for a while, but now when you run the script, it will shut down alpha !!! I do not know if it is because the number of records increased or for some other reason. The app has maybe a hundred records or so, nothing astronomical.
    The Question:
    I have several questions:
    1-Why does the program shut down? this is really the least of my concerns as I intend to abandon this script anyway.
    2-What would be a better way to achieve the same objective?
    I thought about breaking the script down into multiple ones and search telephone fields only (while we are on this subject, this would be a nice feature to add in V7: Search one field, all fields or certain fields). Before re-inventing the wheel I thought: a-maybe someone out there wrote a routine for simillar situation and b-I might end up with the program shutting down anyway if I continue with Text Search.
    3-Other than Text Search, what else would you do to accomplish the same objective. I used exist() in a simillar app, works great. Any better ideas ??
    Thanks.
    Gabe

    #2
    RE: Find Text shuts down alpha

    Send me the script and I'll see if I can reproduce the problem.
    Aaron Brown
    Alpha Software Development Team

    Comment


      #3
      RE: Find Text shuts down alpha

      Aaron:
      The script is very basic:
      topparent.locate()
      will open the dialogue box for the text and run the text search. As I said, inititally it worked fine, but now it crashes the program.
      Thanks
      Gabe

      Comment


        #4
        RE: Find Text shuts down alpha

        gabe, I take a different tack: in field rules, in code, in field events, in canwritefield event, you can insert a script that will check to see if that number already exists (not only in that phone field, but all phone fields,) and if so, display a warning including the "duplicates" asking them if they want to reenter, etc.

        you can also take the same tack for names (last_first), etc.

        having indexes will have it run very fast.
        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


          #5
          RE: Find Text shuts down alpha

          Works fine for me.
          Aaron Brown
          Alpha Software Development Team

          Comment


            #6
            RE: Find Text shuts down alpha

            Thanks Martin.
            The only reservation with exist()is that you have to write a rather long expression to check in each telephone field and you have to have an index for each telephone field as well. Not particularly a big deal. I did use it for names in a comparable app and it works great.
            You favor adding the script to the field rules as opposed to adding it to CanDepart. I have not tried it that way and do not know which is better. Any particular reason why it would be better in the field rules?
            Thanks for your input.
            Gabe

            Comment


              #7
              RE: Find Text shuts down alpha

              Aaron:
              I do not know if this would be of any help, but the app stats are as follows:
              a-Number of fields: 24
              b-Number of charachter fields: 20
              c-Most character field 20-40 characters
              d-Number of records: 384

              Can you try it on an app with a large number of records??
              I am not suggesting that my app has a large number of records but as I said, it worked in the past and now the program crashes every time I use it. Packed and compacted, no luck.
              Thanks
              Gabe

              Comment


                #8
                RE: Find Text shuts down alpha

                Send me the database and I'll look at it.
                Aaron Brown
                Alpha Software Development Team

                Comment


                  #9
                  RE: Find Text shuts down alpha

                  Aaron:
                  Thanks for your help.
                  I zipped my DB to Aaron. As it turned out since I was not using the latest built (needed to download few patches) and as I did so, now the system does not crash any more. I hope it stays that way.
                  The quest for a better way to accomplish the objective is still iopen and I welcome and appreciate any suggestions
                  Gabe

                  Comment


                    #10
                    RE: Find Text shuts down alpha

                    What would be a better way to achieve the same objective?

                    Is restructuring your tables an option? A seperate phone table with phone_number, contact_id and phone_type would be ideal.

                    Lenny Forziati
                    Vice President, Internet Products and Technical Services
                    Alpha Software Corporation

                    Comment


                      #11
                      RE: Find Text shuts down alpha

                      Thanks Lenny.
                      I had a thread a while back where I wanted to do exactly what you are suggesting, only thing is when you create a form then you would have to put the tel numbers in an embeded browse, not an appealing feature to me. In fact in that thread I was wondreing if there is anyway to show fields from more than one record on a form without using an embeded browse, more like what you do in a web component by showing several records in a row. Any suggestions in that regard?
                      Thanks
                      Gabe

                      Comment


                        #12
                        RE: Find Text shuts down alpha

                        gabe, you can put a small, single record embedded browse on a form, showing one phone. then at the onarrive and ondepart event, for example, resize and reposition the object.

                        as for using field rules, instead of form events, I wouldn't say one is better. But field rule scripts can handle scenarios in browses and embedded browses that browse events cannot. Also, if you give the user more than one form for the same table/set, that have the same conditions, field rules need only be written once.
                        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


                          #13
                          RE: Find Text shuts down alpha

                          Creating a Multi_Record Form
                          There can be only one.

                          Comment


                            #14
                            RE: Find Text shuts down alpha

                            Thanks Martin & Stan.
                            Stan, that's a good article. I was thinking along the lines of an array or a list as well.
                            Keep the good ideas coming.
                            Thanks
                            Gabe

                            Comment

                            Working...
                            X