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

Embedded Browse Selected Record

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

    Embedded Browse Selected Record

    I'm hoping I'm simply overlooking something obvious.

    I have an embedded browse on the third page of a tabbed control, and also have a button "view detail" which brings up a form showing the contents of that record.

    My problem is that when the embedded browse opens, and there is more than one record, the browse shows that the last record of the browse is selected (the row is highlighted) (I have "row selector" set as a property of the browse).
    When I select the "view detail" button however, the first record of the browse is always brought up. If I click on and move the selection to another record, then the correct record is always displayed.

    It's clear that the embedded browse is always "focused" on the first record of the imbedded browse even though it is the last record of the browse that is highlighted.

    Can anyone give me some advice on how to make sure the user gets the record selected that they think they are going to get?

    Thanks for the help.

    #2
    Re: Embedded Browse Selected Record

    Looks like I may have found a workaround for this, so thought maybe someone might be helped by it.

    In the ONTABCHANGE event, the following code ensures the browse always focuses on the last record of the browse (which is the behavior I wanted here):

    Page = :fSingleAddress:tabbed1.tab_get()
    if Page = 3 then
    :fSingleAddress:browse2.Activate()
    :fSingleAddress:browse2.Up()
    :fSingleAddress:browse2.Down()
    end if

    Still not sure why without this code, the browse always sits on the first record even though the highlighting seems to indicate the last record is the current one.

    Comment


      #3
      Re: Embedded Browse Selected Record

      What code do you have on your "view detail" button?
      Ernie

      Comment


        #4
        Re: Embedded Browse Selected Record

        Gordon,
        I have an instance of a very similar "bug" that I submitted a bit ago--it was fixed with one sequential patch and then broken again with another that followed--still broken as of patch 2095, 3264 (using the new browse). In my case, if I place focus on a record and then click in a field of that record so that the data in the row is not highlighted...when I select a different record with the row selector, that row will be highlighted completely, but the prior row still has focus (cursor still in in the field clicked on and that field is once again highlighted--not the entire row, just the data in the field). If delete is used from wherever, the data in the field will be deleted and not the row that is highlighted.

        So a similar scenario but a bit different. I only mention it as I have already a bug report for it and I think you should also submit a sample with instructions to reproduce your issue as a bug too.
        Mike
        __________________________________________
        It is only when we forget all our learning that we begin to know.
        It's not what you look at that matters, it's what you see.
        Henry David Thoreau
        __________________________________________



        Comment


          #5
          Re: Embedded Browse Selected Record

          Ernie,
          The code I have in my "view detail" button is actually the action script to open a form with a matching field value (my field is the auto increment field req_id). Here is the X Basic code which displays when I view the action script x-basic:

          'Open a Form or Browse layout, displaying all, or selected records in the layout.
          'Check to see if you are running the script from within a Form
          dim flag_error as l
          flag_error = .f.
          if is_object(topparent.this) then
          p = topparent.this

          if eval_valid("P:BROWSE2:Req_id.value") then
          DELETE Parameter1
          'Set the Parameter variable to the object's .value property
          Parameter1 = eval("P:BROWSE2:Req_id.value")
          else
          flag_error = .t.
          end if
          else
          flag_error = .t.
          end if

          if flag_error then
          ui_msg_box("Error","BROWSE2:Req_id does not exist. This script cannot be run in this context.",UI_STOP_SYMBOL)
          end
          end if


          filter = "Req_id = [varN->parameter1]"
          query.filter = replace_parameters(filter,local_variables())
          query.order = ""


          'Open the layout_type showing just the records that satisfy the filter
          DIM Shared varP_fRequestDetail as P
          DIM layout_name as c
          layout_name = "fRequestDetail"
          varP_fRequestDetail = :Form.viewqueried(layout_name,query.filter, query.order ,"dialog")
          'After the user closes the dialog form, the form remains in memory and the script
          'continues with the next command.

          'You can insert any code here that you want to execute before the dialog form (which is now
          'hidden) is removed from memory with the .close() command.
          'The code that you insert here can refer to the form using the pointer variable, varP_fRequestDetail

          if is_object(varP_fRequestDetail) = .t. then
          varP_fRequestDetail.close()
          end if

          Comment


            #6
            Re: Embedded Browse Selected Record

            Thanks Mike,

            Yes, that does sound similar to what I have experienced. If I can find some time to do that, and if others seem to agree that this might be a bug, I will try to put something together to demo that.

            Gordon

            Comment


              #7
              Re: Embedded Browse Selected Record

              Is your View Detail button in the browse, or just a button on the form?

              I started up AlphaSports, dropped a tab control on the Invoice form and then dragged the embedded browse onto the 3rd tab. The Zoom button works in this case. It's using Zoom_To_Record.

              I don't know the specifics of your app, but this sounds like what you want to do.

              Comment


                #8
                Re: Embedded Browse Selected Record

                Gordon

                I submitted a bug report for this 2 or 3 days after 3264 came out. Received a reply a day later that "it's fixed - out in next release". Submitted another one involving/related to(indexes)this last week.

                Comment


                  #9
                  Re: Embedded Browse Selected Record

                  I also submitted a bug report back on april 8th. They said they were working on it. I was using the browse open form button in a browse. It very seldom captured the correct record.
                  Ernie

                  Comment


                    #10
                    Re: Embedded Browse Selected Record

                    David,

                    This is my inexperience with Alpha 5 showing, but I didn't realize there was a Zoom to Record function. Thanks for the suggestion. That seems to work nicely.

                    However, I did find that just using Zoom to Browse gives me an error message stating "You can only zoom if a record in an embedded browse has focus". In other words, apparently just going to the tab does not set the focus on a record in the embedded browse. But I did find that if I force the browse to have a record in focus by using the code I described earlier, then the zoom to record function works fine.

                    Hope that makes sense.

                    Gordon
                    Last edited by gkpurcey; 04-20-2009, 03:47 PM.

                    Comment


                      #11
                      Re: Embedded Browse Selected Record

                      Originally posted by MikeC View Post
                      Gordon,
                      I have an instance of a very similar "bug" that I submitted a bit ago--it was fixed with one sequential patch and then broken again with another that followed--still broken as of patch 2095, 3264 (using the new browse). In my case, if I place focus on a record and then click in a field of that record so that the data in the row is not highlighted...when I select a different record with the row selector, that row will be highlighted completely, but the prior row still has focus (cursor still in in the field clicked on and that field is once again highlighted--not the entire row, just the data in the field). If delete is used from wherever, the data in the field will be deleted and not the row that is highlighted.

                      So a similar scenario but a bit different. I only mention it as I have already a bug report for it and I think you should also submit a sample with instructions to reproduce your issue as a bug too.
                      These seem like major problems, what if you design your database then they break functionality in an update? I feel like a beta tester only i paid them for the experience.

                      I am having similar problems with an embedded subform linked to a browse. the subform will display the correct information for the record selected in the browse but all changes are appended to the first record in the set, not the currently selected record.

                      Comment


                        #12
                        Re: Embedded Browse Selected Record

                        Nathan,
                        These seem like major problems,
                        Actually in the scenario I describe, it only occurs if a user does something in a very specific and unusual way so I personally would not call this a major problem. The subform issue may affect more users, but then I do not know of many developers actually using them so even this may not be a major problem...except, of course, for those with the issue....that's why I suggest giving a very explicit bug sample so that it can be fixed.

                        what if you design your database then they break functionality in an update?
                        Two points here....if an update breaks something report it and in all likelihood it will be fixed....but then if you have a working database and don't need any of the new fixes or whathaveyou, why update at all?? I sure wouldn't.

                        I feel like a beta tester only i paid them for the experience.
                        I guess I can't disagree here...but then I would have to say that EVERY application I have ever purchased I have had to do the same thing---and that goes for any Microsoft program as well...At least with Alpha there is a very good chance at getting issues fixed.
                        Mike
                        __________________________________________
                        It is only when we forget all our learning that we begin to know.
                        It's not what you look at that matters, it's what you see.
                        Henry David Thoreau
                        __________________________________________



                        Comment


                          #13
                          Re: Embedded Browse Selected Record

                          Originally posted by gkpurcey View Post
                          I'm hoping I'm simply overlooking something obvious.

                          I have an embedded browse on the third page of a tabbed control, and also have a button "view detail" which brings up a form showing the contents of that record.

                          My problem is that when the embedded browse opens, and there is more than one record, the browse shows that the last record of the browse is selected (the row is highlighted) (I have "row selector" set as a property of the browse).
                          When I select the "view detail" button however, the first record of the browse is always brought up. If I click on and move the selection to another record, then the correct record is always displayed.

                          It's clear that the embedded browse is always "focused" on the first record of the imbedded browse even though it is the last record of the browse that is highlighted.

                          Can anyone give me some advice on how to make sure the user gets the record selected that they think they are going to get?

                          Thanks for the help.

                          Comment


                            #14
                            Re: Embedded Browse Selected Record

                            Originally posted by gkpurcey View Post
                            I'm hoping I'm simply overlooking something obvious.

                            I have an embedded browse on the third page of a tabbed control, and also have a button "view detail" which brings up a form showing the contents of that record.

                            My problem is that when the embedded browse opens, and there is more than one record, the browse shows that the last record of the browse is selected (the row is highlighted) (I have "row selector" set as a property of the browse).
                            When I select the "view detail" button however, the first record of the browse is always brought up. If I click on and move the selection to another record, then the correct record is always displayed.

                            It's clear that the embedded browse is always "focused" on the first record of the imbedded browse even though it is the last record of the browse that is highlighted.

                            Can anyone give me some advice on how to make sure the user gets the record selected that they think they are going to get?

                            Thanks for the help.
                            I am having this same problem in V9. Worked ok in V4.5. I have found if you move the browse off the tab and put it beside the tab it works right.

                            Comment


                              #15
                              Re: Embedded Browse Selected Record

                              I have noticed this same problem with browses on tabbed forms. I found that if you put a "refresh display" script on the OnTabChange event it will point to correct record. It slows things down a bit so I also added a "play sound" script along with it. Seems you don't notice the slowness as much with the little "bonk" sound.

                              Comment

                              Working...
                              X