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

Populates with Customerid + 27

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

    Populates with Customerid + 27

    If I search for customerid 27, press the button to populate the grid and Customer 27 briefly flashes. Then a higher customerid # shows up. No matter what customerid is used, the scenario is the same; a quick flash with the right Customerid and then a higher customerid #populates the ux controls. I've tried the other 'populate a UX' using a button, all with the same results.

    Publishing did not help. There is no other code on the button.
    TYVM :) kenn

    Knowing what you can achieve will not become reality until you imagine and explore.

    #2
    Re: Populates with Customerid + 27

    This is nutzzzzz. Either I'm missing something so obvious or.....

    The UX was created by selecting the fields from an existing table and the genie did the data binding. Then, I added a button and used the top Javascript onClick event, choosing the populate from tables and then choosing the Customerid field. No matter what customerid number I place in the customerid field, a higher number is ALWAYS returned.

    I also tried the 2nd Javascript onClick event ending up with the same results. Additionally, I checked the debugger display info checkbox. No errors were found and no info was shown.

    This might be a goofy question, but is it possible Win 8.1 is the culprit? One thing I've noticed of late is that I have to right click on the Adobe flash player icon in order to run videos, etc. Maybe the flash player needs to be updated but I hate doing that because adobe loves to inflict pesky add-ons. Grrrrr.

    ANy thoughts, suggestions are greatly appreciated.
    Last edited by forskare; 05-02-2015, 10:45 PM.
    TYVM :) kenn

    Knowing what you can achieve will not become reality until you imagine and explore.

    Comment


      #3
      Re: Populates with Customerid + 27

      A solution has not been found but after reviewing the video several times, I see that there are 2 major differences. 1) A separate unbound field is used to enter the criteria. I used my bound customerid field. I have no clue how an unbound field is supposed to relate to anything. 2) the video demos an sql table, mine is a dbf. However, the genie does not differentiate between sql or dbf so I presume it should work either way.

      I've uninstalled and reinstalled AA which made no difference. In summary, the genie does not work. Enter customerid 100 and I get customerid 110. Enough is enough so moving on to another approach.
      TYVM :) kenn

      Knowing what you can achieve will not become reality until you imagine and explore.

      Comment


        #4
        Re: Populates with Customerid + 27

        I just created a simple table and built dialog to populate and it populates as expected.
        several things confusing in your post(s)
        post number 1.
        If I search for customerid 27, press the button to populate the grid
        are you populating a dialog or grid? and where and how are you searching?
        choosing the populate from tables and then choosing the Customerid field
        where is this field? normally you will have an unbound button that will trigger populating not the id from the table.

        post #2:
        The UX was created by selecting the fields from an existing table and the genie did the data binding. Then, I added a button and used the top Javascript onClick event, choosing the populate from tables and then choosing the Customerid field
        now it makes sense you are in dialog, but why aren't you using the unbound control?
        I used my bound customerid field. I have no clue how an unbound field is supposed to relate to anything
        does not make sense.
        I will show in a screencast how it done if you explain where the search part comes into play.

        edit: a simple demonstration, not including search. you have to explain what is involved in it.
        http://screencast.com/t/IRksJtDTr3
        Last edited by GGandhi; 05-03-2015, 04:15 PM.
        thanks for reading

        gandhi

        version 11 3381 - 4096
        mysql backend
        http://www.alphawebprogramming.blogspot.com
        [email protected]
        Skype:[email protected]
        1 914 924 5171

        Comment


          #5
          Re: Populates with Customerid + 27

          Thanks for the video. I watched it twice to make sure I understood it and then created a new UX based on a dbf customer table. Added the field and a button. Next, I used the genie to code the button as shown in your video and Selwyns video. Followed it to a 'T' but it's pretty difficult to mess up on it. OK, ran the UX and entered 88 in the search box for the customer ID; pressed the button and customer 98 comes up. The only thing I can thing of is that since it works for you with v11 (it's a v11 genie) and I'm using an up to date AA v3.11. Don't know what else there is to check.
          TYVM :) kenn

          Knowing what you can achieve will not become reality until you imagine and explore.

          Comment


            #6
            Re: Populates with Customerid + 27

            it works for you with v11 (it's a v11 genie) and I'm using an up to date AA v3.11
            highly doubt that is the reason, they did not have any issues in this area to rewrite the code and mess it up. here are some options for you.
            1> download TeamViewer install and contact me to give the access code, I can log in to your computer and see what you are doing.
            2> instead of populate method you can simply use lookup to populate all the controls in the dialog. you will not need unbound field and a button.
            3> send me your table I will redo the screencast with your table and post it, better yet build a dialog and send it back to you.
            thanks for reading

            gandhi

            version 11 3381 - 4096
            mysql backend
            http://www.alphawebprogramming.blogspot.com
            [email protected]
            Skype:[email protected]
            1 914 924 5171

            Comment


              #7
              Re: Populates with Customerid + 27

              You need to supply your UX and the table.
              Insanity: doing the same thing over and over again and expecting different results.
              Albert Einstein, (attributed)
              US (German-born) physicist (1879 - 1955)

              Comment


                #8
                Re: Populates with Customerid + 27

                Well, you guys got me to think in a different direction. First, I eliminated all the fields but one, one at a time. Still the same issue. Then I created a new table with 3 fields and 21 records. Next, I created the UX and then the unbound field and a button. It works as advertised. Some success. The next step was to delete the UX with the issue and create a new one based on the existing customer table. After creating the unbound field and the button, I gave it a try. Ahhh Nutzzzzzz, Same problem as before, search for id 100 and id110 is retrieved. OK, what is it with the customers table? The database has been compacted numerous times as has publishing. Hmmmmmmm
                TYVM :) kenn

                Knowing what you can achieve will not become reality until you imagine and explore.

                Comment


                  #9
                  Re: Populates with Customerid + 27

                  Just a quick thought Ken, is your customerID field a character field?

                  Comment


                    #10
                    Re: Populates with Customerid + 27

                    Originally posted by Lance Gurd View Post
                    Just a quick thought Ken, is your customerID field a character field?
                    No, it is numeric. I think I found the culprit. When I assigned the customerid (using an operation) I started with the number 10. The though came to me that maybe when the id number is entered, Alpha thinks it needs to start with the number 1. I reassigned the customerid numbers beginning with 1. Opened the UX and searched for 100 and lo and behold, customer 100 appeared. I suspect this is a bug. It should not make any difference what number the customerid field starts with when propagated.

                    That said, I either have to reassign id numbers in 3 tables or not use this method of populating a UX.

                    Thanks for the replies and suggestions.
                    TYVM :) kenn

                    Knowing what you can achieve will not become reality until you imagine and explore.

                    Comment


                      #11
                      Re: Populates with Customerid + 27

                      This may be unrelated, but if I recall correctly, UX based on DBFs default to recno() as the primary key. May want to check if you need to explicitly define primary key is the CustomerID field in the UX.

                      Comment


                        #12
                        Re: Populates with Customerid + 27

                        Yes Ken,

                        Think you may be onto something with the bug theory. I just made a quick UX based on my old dbf clients table nearly 1000 records, client_id starting at 1 numeric. Populate the ux with a button that reads from the value from an unbound control and it always adds 1 to the id value returned.

                        Comment


                          #13
                          Re: Populates with Customerid + 27

                          Jeff is right. Go to databinding, bind the controls to one or more tables. Then specify tables, and set the primary key field(s) to your customer_id field and it should work.

                          Comment


                            #14
                            Re: Populates with Customerid + 27

                            Populate the ux with a button that reads from the value from an unbound control and it always adds 1 to the id value returned.
                            \
                            that was not my experience, take a look at the screencast in post number 4.
                            after your question about character field primary key I did a test with character field and still good.
                            thanks for reading

                            gandhi

                            version 11 3381 - 4096
                            mysql backend
                            http://www.alphawebprogramming.blogspot.com
                            [email protected]
                            Skype:[email protected]
                            1 914 924 5171

                            Comment


                              #15
                              Re: Populates with Customerid + 27

                              Gandhi,

                              Your table in post #4 is quite a simple table which was explicitly started at record number 1, mine was a vary old dbf table which could well have been started at record 0. As Jeff points out in post #11, with dbf tables unless changed in the binding the primary key is based on the recno(). This is not a reliable way of searching for a customer_id because it may not be the same as the record number.

                              Comment

                              Working...
                              X