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

Browse resynch/refresh - proper method?

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

    #16
    Re: Browse resynch/refresh - proper method?

    Originally posted by Daniel Weiss View Post
    If this is what you are referring to here is sample of a few browses which has some events in it, i sent to Alpha a while back (i don't remember what the issues was)
    No, that's definitely not it.

    Try this anyone --

    - Open a form in Design mode.
    - If there isn't an embedded browse on it, add one.
    - Right click on the browse and select "Events" in the drop-down.
    - Read the list of events. There is a new event that is simple called "Events". That "Events" event didn't exist in previous versions. I'm sure that's where the new events are to be put.

    Now, somebody tell me where to find the #$*&#&$ info on using this. I know I saw it but now I can't find it.

    (I'm actually finding it hard to believe that someone at Alpha hasn't picked up on this and said "here it is...")

    Comment


      #17
      Re: Browse resynch/refresh - proper method?

      Cal,
      It in the summary of whats new doc ....

      http://support.alphasoftware.com/wha...atsnewinV8.htm

      Browse Events - New Browse Events - Several new browse events are now supported for both stand alone and embedded browse layouts. OnSave - fires when a record in the Browse layout is saved. CanSave - fires when the user tries to save a record. The event can be cancelled by calling the cancel() function. <Column>_onChange - fires when data in a browse column is changed. The <Column> events are defined by inserting the appropriate functions calls into the Browse, Events script. For example, here is how to define an event handler for the 'lastname' column in a browse:

      For a stand alone Browse, select Browse, Events, Events. For an embedded Browse, select Object, Event, Event, or right click on the Browse and select Events, Events

      In the 'Events' script, define this function:

      function lastname_OnChange as v ()

      ui_msg_box("On Change Event for Browse. Browse name is: ",this.name())

      end function

      Note that the 'this' alias refers to the browse object that contains the browse column.



      Glenn

      Comment


        #18
        Re: Browse resynch/refresh - proper method?

        YES! That's what I was looking for!

        It is NOT in the Help file under What's New in V8. And, although that page is on their site, I can't find a link to it from the main Alphasoftware site.

        Unfortunately, it looks like they won't be much help for refreshing items in the browse.

        (For anyone who uses my A5v5 Help file, you may have noticed that there are some A5v6 and A5v7 items in there as well. Now there will soon be at least one A5v8 item too. Keywords will be Browse and Events.)

        Comment


          #19
          Re: Browse resynch/refresh - proper method?

          From the "Beating the Dead Horse Dept."

          I feel like this has been answered, but I can't seem to get anything to work. I have a named embedded browse on a form called up as an XDialog form, with several buttons on the form... two are labeled "Mark All" and "Unmark All".

          Here's my problem. "Mark All" does, in fact, mark all the records using a simple actionscript, however the little "marker" indicator doesn't show that everything has been selected - unless you click on a row, first. Then they show as being marked. Same with the "Unmark All" button (if all are marked and showing as such, clicking "Unmark All" does indeed unmark them, but it doesn't show in the browse).

          I added the following commands to a quick XBasic script (I'm throwing in everything!) following the action script action, but it does no good in updating the browse to show everything is either marked or unmarked:

          topparent.Commit()
          topparent.Resynch()
          topparent.Refresh_Layout()
          browse.Refresh_Browse()
          browse.Refresh_Layout()

          Like I said, I'm throwing in the kitchen sink at this trying to get an instant change to the button(s) pressed.

          Any help or insight would be great

          (BTW - A5V8 1301-3062)

          Comment


            #20
            Re: Browse resynch/refresh - proper method?

            Shawn

            You could try a browse.activate() and then a sys_send_keys("{pgup}"). I have gotten browses to update when all else failed by doing this.

            Regards,

            Jeff

            Comment


              #21
              Re: Browse resynch/refresh - proper method?

              Hi, thanks for the reply...

              I find that if the current row is set to the top of the browse, this won't work -- it only works if the current row selected is somewhere below the top; but that's ok, I can work around that... so your sugggestion will help me get what I want. I think the key word here is "I can work around that"... is this supposed to be the normal behavior, though, to require a work-around? Any other thoughts, opinions or ideas are more than welcome...

              Comment


                #22
                Re: Browse resynch/refresh - proper method?

                Sounds like you have a work around figured out but you could just send:

                sys_send_keys("{down}{up}")

                This will send the down arrow followed by an up arrow.

                My experience with Alpha is just about a year but I have found only in isolated circumstances do I have to "force" this work around. At least in ver 8 this is true. The one case off the top of my head where I have an issue is when I arrive on a form with an embedded browse form from another form that has manipulated the data being shown in the browse. It seems the browse needs to get focus before underlying changes are reflected in a situation like this(at least in my case it does).

                Regards,

                Jeff

                Comment


                  #23
                  Re: Browse resynch/refresh - proper method?

                  Shawn, could you give us some details on the "simple actionscript"? Preferably the xbasic equivalent. How the table is being accessed could be critical to the "refreshability" - is it a table.get(), table.open(), parentform:tables.....? If it's done with a table.open() it will be hard to refresh.

                  Comment


                    #24
                    Re: Browse resynch/refresh - proper method?

                    Hi Cal,

                    I have a button on a form that allows the user to select records to be included in the printing of labels... Pressing the button opens a form as an XDialog box (this is done strictly with action scripting: Dialog Boxes->Open Form as a Dialog Box); The Xdialog form has a named embedded browse that allows them to individually mark records, or they can press one of two buttons. One button says "Mark All" and the other button says "Unmark All" (there are also "OK" and "Cancel" buttons but don't come into play in this discussion as far as I can tell).

                    The "Mark All" button runs an action script that, in turn, runs a saved operation (silently). The operation it is running is called "MarkAll". It is a saved operation that, using the operation genie, simply marks all the records. Same with the "Unamrk All" button (runs a saved operation that unmarks all records).

                    That's the extent of the action scripts... nothing fancy, pretty much doing what they are designed to do. Only thing is, after you select "Mark All" for example, the browse does not show that the records have all been selected. However, if you change the focus of the existing row to another, EVERYTHING suddenly shows as being marked (or unmarked, as the case may be).

                    As mentioned earlier, doing a sys_send_key("{down}{up}") is all that is necessary to get everything to show (and in doing so ultimately ends up leaving focus on the line in the browse that had focus in the first place...)

                    Don't know that showing any Xbasic would help here, as what Xbasic there is is generated purely with Action-scripting. I attempted to throw in some xbasic with any command I could find to "update" or "refresh" the browse embedded in the form so it would display as I would have expected (letting the user get visual feedback that all the records were selected). I put this little snippet of Xbasic AFTER the action scipt entry that ran the saved operation, prior to returning to the form from the button.

                    Hope that makes things clear on what's going on...
                    Last edited by smrogers; 03-12-2007, 10:45 PM.

                    Comment


                      #25
                      Re: Browse resynch/refresh - proper method?

                      Shawn,
                      Try this, it's not fancy but will work without problems in v8 as you aren't moving the focus off the browse.
                      In action scripting select mark and navigate to the next record.
                      Step thru until you reach the last record if you want to mark all.
                      the opposite to unmark.
                      If you have a lot records to mark this really isn't that practical as it's not particularly fast.
                      You can however use this to mark 1, several or all the records in an embedded browse. This is not for xdialog, but for an embedded browse in a form.

                      See the screenshots.

                      Russ

                      Comment


                        #26
                        Re: Browse resynch/refresh - proper method?

                        Below I've posted a demo database demonstrating what I'm talking about. Open the "Main Form" and click on the button that allows you to select records.

                        Next, click on "Mark All". Don't see any marks? Click on "Show 'em" -- NOW you can see all the records as being tagged. Then click on "Unmark All". Same thing -- everything shows as being marked. Click on "Show 'em" again... now they display as being unmarked....

                        And this is my question -- why do you have to jump through these hoops? It should just show the records as marked or unmarked after clicking on the button.

                        I should note this is running I'm running V8, 1318-3063, under Vista Business (at home) and XP SP2 at the office (although the behavior is the same).

                        Comment


                          #27
                          Re: Browse resynch/refresh - proper method?

                          Originally posted by smrogers View Post
                          Below I've posted a demo database demonstrating what I'm talking about. Open the "Main Form" and click on the button that allows you to select records.

                          Next, click on "Mark All". Don't see any marks? Click on "Show 'em" -- NOW you can see all the records as being tagged. Then click on "Unmark All". Same thing -- everything shows as being marked. Click on "Show 'em" again... now they display as being unmarked....

                          And this is my question -- why do you have to jump through these hoops? It should just show the records as marked or unmarked after clicking on the button.

                          I should note this is running I'm running V8, 1318-3063, under Vista Business (at home) and XP SP2 at the office (although the behavior is the same).

                          [ATTACH]13742[/ATTACH]
                          Ok. I downloaded the test.zip and see the behavior your referring to. Using XP Pro, SP2 and the latest patch for V8 Professional.

                          I was able to get the browse to refresh with adding a topparent:browse1.refresh() to the button scripts.

                          In action scripting choose "Refresh Objects" then select browse1.

                          I also wrote a script and attached it to a new button to step through the records using table.get() and .mark() and still had to refresh the browse in order to "see" the marked records as marked.
                          Jim Coltz
                          Alpha Custom Database Solutions, LLC
                          A5CustomSolutions.com
                          [email protected]

                          Comment


                            #28
                            Re: Browse resynch/refresh - proper method?

                            Had a simular problem with all my embedded browses. New records seemed to show properly after saving , but changes to records did not show in the browse table until I moved to another record.
                            I added the following x-basic inline script to my save button:

                            browse1.activate()
                            browse1.resynch()

                            Up to now everything seems to work fine.

                            Gunter

                            Comment


                              #29
                              Re: Browse resynch/refresh - proper method?

                              I havent seen anyone mention it in this thread, but my new best friend for an embedded browse when its not displaying properly is topparent:browsexx.repaint().

                              I use :topparent.resynch() just to make sure parent/child is synched up and then do the browse repaint ...

                              Glenn

                              Comment


                                #30
                                Re: Browse resynch/refresh - proper method?

                                Thanks all for the suggestions; some I've tried and had little, no success, or inconsistent success - others I haven't (as I said earlier, I've thrown in the kitchen sink trying to get consistent results without too much luck). I'll try what's been suggested here and let you know what I have good results with...

                                Comment

                                Working...
                                X