Alpha Video Training
Results 1 to 5 of 5

Thread: FYI Refresh_Browse()

  1. #1
    Member Mike Thomson's Avatar
    Real Name
    Mike Thomson
    Join Date
    Jul 2005
    Location
    Queensland, Australia
    Posts
    266

    Default FYI Refresh_Browse()

    THIS FUNCTION WILL REFRESH A BROWSE WINDOW

    Note: Function is still being fully tested so I need feedback before posting to code archive.

    Here is a revision to my Refresh_Browse() function
    With the old function - if you did not have the form contained on a filter , and refreshed the browse you could end up with a differnt parent record

    The syntax for the new function

    Refresh_Browse (BrowseName, Browsetable, Parenttable, Freezeflag, ActivateFlag)

    For example:

    RefreshBrowse ("Browse1","invoices","Customer",.t.,.t.)

    The Freeze option, was added to control if UI interface is frozen during update to prevent any jerky refreshes. The activate option simply gives focus to the browse window after updating.

    Looking forward to the feedback

    Mike

  2. #2
    Member Mike Thomson's Avatar
    Real Name
    Mike Thomson
    Join Date
    Jul 2005
    Location
    Queensland, Australia
    Posts
    266

    Default RE: FYI Refresh_Browse()

    Attachment did not work here it is again

  3. #3
    Member Mike Thomson's Avatar
    Real Name
    Mike Thomson
    Join Date
    Jul 2005
    Location
    Queensland, Australia
    Posts
    266

    Default RE: FYI Refresh_Browse()

    Here is an update to the Refresh_Browse() function

    I am not getting a lot of chatter, which suprises me since this is one of the most talked about problems on the message board.

    The update simplifies the call process (you do not need to supply table names and parent table name - it gets them automatically. You can also supply multiple browse names in the one call , which makes it more efficient when you have more than one browse

    The version also fixes a problem, where browse would not not always refresh correctly on first record of set and also preserves the filter and order on the browse table.

    The call is as simple as:

    refresh_Browse ("Browse1,Browse2,...")

    Browse names must be sperated by a comma

    Cheers

    Mike

  4. #4
    Member Mike Thomson's Avatar
    Real Name
    Mike Thomson
    Join Date
    Jul 2005
    Location
    Queensland, Australia
    Posts
    266

    Default RE: FYI Refresh_Browse()

    Oops , here is new function attachement

  5. #5
    Member SwissCharles's Avatar
    Real Name
    Charles U. Schneiter
    Join Date
    Apr 2003
    Location
    Basel, Switzerland
    Posts
    181

    Default RE: FYI Refresh_Browse()

    Mike,

    I for one am very interested in your effort - many thanks for this script!

    This latest version makes it's use very simple.

    I will be able to test this out sometimes next week...I'll let you know.

    Regards from Switzerland!

    Charles

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •