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

position of Lookup window

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

    position of Lookup window

    I do not see how I can position the lookup window when using the Lookup function from a grid. I know that normally javascript is used to open a popup window in a particular location; is there a built-in method in Alpha?

    Problem is that my lookup window tends to appear somewhat off-screen and the user constantly has to drag the window fully inside the screen in order to review and select a record.

    If I try some in-line settings for "position", the entire function fails and the lookup icon does not show up.
    Steve Wood
    See my profile on IADN


    #2
    The position is determined by the JavaScript that opens the page. It is based on opening the popup with the top left corner of the popup located at the icon used to open it. The JavaScript has code to reposition the window if it doesn't fit. This is calculated based on the new window size and the existing window height and width. However, on some screens, the popup may appear slightly off screen. If you are proficient with JavaScript, you can edit the a5_html_popup_generic.js File to modify the screen.width variable value in the various JavaScript functions, or force a particular top and left position

    Comment


      #3
      Thanks Jerry,

      My client resolved it out on their own by moving the monitor slightly right and down.
      Steve Wood
      See my profile on IADN

      Comment


        #4
        Jerry,

        Another related question. I could swear that when I open a lookup and click "select" in the lookup grid, that the lookup grid would close, leaving the user back on the main screen. But it does not do that now; the lookup window stays open. Each time I click "select" it does update the main form with the appropriate field values, but the lookup window does not close until I click the window X.

        Since there is no option for either mode, is the lookup window supposed to stay open or it is supposed to close?
        Steve Wood
        See my profile on IADN

        Comment


          #5
          Steve I've had this problem a couple of times. Check to see if the the yellow triangle with the exclamation mark is showing on the lower left side of your screen when this happens.
          Sergeant Richard Hartnett
          Hyattsville City Police Department
          Maryland

          Comment


            #6
            No yellow triangle in the corner (error msg). I do recall what I did to the lookup grid between the time it auto-closed, and now does not close. I added a search and detail page to the lookup. I then changed my mind about those features, and remoed them. I'll try tomorrow to recreate a new lookup with only a grid, then see if adding search and detail cause the problem.
            Steve Wood
            See my profile on IADN

            Comment


              #7
              If the yellow triangle is showing in IE, there is a JavaScript error. The supplied Javascript should not be giving an error as it has been tested in many browsers and hasn't changed in many months. Not closing on select is also an indication of a JavaScript issue, as the onclick event that sets the value also should close the popup. You might try republishing the javascripts and the components with the lookups

              Comment


                #8
                This is a weak-spot in A5V7

                The Lookup did close, the yellow triangle does appear on some machines and different browsers as well. And I have NEVER been able to rely on pre-fetch. So everone is correct. Just what the answer is, is beyond me, so I just go with it for now and hope it just comes good at a later release, it has happened before on other issues.
                Peter
                Insanity: doing the same thing over and over again and expecting different results.
                Albert Einstein, (attributed)
                US (German-born) physicist (1879 - 1955)

                Comment


                  #9
                  Okay I was just curious, because everytime I had that problem, I did have the error indicator showing at the bottom of the screen. I would always find out later that I had changed something in the lookup grid that didn't "play well" with the system, and like you, even though I would go back and remove and/or fix it, I still kept getting the error indicator.

                  If I went back and rebuilt the lookup grid, everything worked fine again.
                  Sergeant Richard Hartnett
                  Hyattsville City Police Department
                  Maryland

                  Comment


                    #10
                    Double Click.1

                    I always double click the triangle to see the error, but it's means nothing to me. Rich, I see on the board you managed to get reports to run/pdf. I just cannot get my head around this. Do you have anything that might set me right on how you managed it? I find the help issues on this very confusing. Peter
                    Insanity: doing the same thing over and over again and expecting different results.
                    Albert Einstein, (attributed)
                    US (German-born) physicist (1879 - 1955)

                    Comment


                      #11
                      Lookup window still stays open

                      Republishing the javascript did not fix the problem (steps below). I also recreated a brand new lookup grid and set the lookup to that new grid. Also, of course, republished all files to the server.

                      So the lookup window still stays open after user selects a record from the lookup. I do have to resolve this as it is perplexing to the user.

                      Steps:
                      • deleted A5Webroot\javascript\*.*
                      • copied in c:\Program Files\A5V7\javascript\*.*
                      • cleared web cache, etc.
                      • closed/opened browser
                      • tried from fresh computer
                      Steve Wood
                      See my profile on IADN

                      Comment


                        #12
                        The problem is in the calling grid, not the lookup grid. So there is something residing in the xbasic or html of the calling grid that causes the lookup window to not close.

                        Proof-> 1) Create a new grid. Add this grid as a lookup in the SAME grid that has the problem already. The new lookup does not close on select. 2)Add the lookup grid to a NEW grid. The lookup does properly closes on select.
                        Steve Wood
                        See my profile on IADN

                        Comment


                          #13
                          Agreed

                          That's how I fixed my problem with it, I try not to change things now as a result. - It needs looking at by the team.

                          Peter
                          Insanity: doing the same thing over and over again and expecting different results.
                          Albert Einstein, (attributed)
                          US (German-born) physicist (1879 - 1955)

                          Comment


                            #14
                            Re: position of Lookup window

                            Sounds good to me if I was a programmer of JAVA which I am not. I will wait until Alpha5 puts something in the Server app to allow me to do this without going back to Uni.

                            Thanks.

                            dewayne

                            Originally posted by JerryBrightbill View Post
                            The position is determined by the JavaScript that opens the page. It is based on opening the popup with the top left corner of the popup located at the icon used to open it. The JavaScript has code to reposition the window if it doesn't fit. This is calculated based on the new window size and the existing window height and width. However, on some screens, the popup may appear slightly off screen. If you are proficient with JavaScript, you can edit the a5_html_popup_generic.js File to modify the screen.width variable value in the various JavaScript functions, or force a particular top and left position

                            Comment

                            Working...
                            X