dbr.tab - active tab after user action

(3 posts) (2 voices)
  1. eugfri, Member

    Hi,

    I am using dbr.tab with multiple tabs and on some of them I show lists of rows along with "ADD" button allowing user to add new rows. The procs to add new rows are similar to your example with adding new film here:
    http://mydbr.com/doc/content/start.editable.html
    I.e. at the end of those procs I use dbr.refresh.
    This all works just fine, but of course after dbr.refresh is executed, user is forced to the first tab of dbr.tabs instead of remaining on activated tab.

    I wonder if there is any trick you can suggest in order to keep user on the active tab from which "ADD" proc was called.

    Thank you

  2. myDBR Team, Key Master

    Best solution is to refresh just the table the editing affects, not the full report. You can do this by attaching a invisible refresh-button which you press after the row is added.

    Alternatively, you can use the dbr.tab.selected -command to set the active tab after full report refresh.

    --
    myDBR Team

  3. eugfri, Member

    Perfect, thank you!


Reply

You must log in to post.