Button to navigate to tab panel?

Is there a way to programmatically navigate to a tab in xPages? Say I’m in tab 1. Id’ like a button which, depending on a prompt want the system to bring up tab 2 or 3…any suggestions?

Second question…how do you do a plain old msgbox prompt in xPages (with a return value, etc?)

Subject: hope this helps

Hello again! I’m writing this off-the-cuff, so please be forgiving.

Okay the first issue, navigating to a new tab with a button. You can do this by first

setting the default tab to a scoped variable (lets use session for this example, probably

most common,sessionScope.tabID=“tab1”), passing the wanted tab name into the proper

scope on the button click (sessionScope.tabID = “tab2”), and then tell the page/element to update.

The second question is a little too complex to detail here, but the easiest way to do this is to

use the DOJO toolkit, and more specifically the dialog box. You’ll want to check out this link as well:

Email me if you have any questions: rockybevins@gmail.com

Subject: Using scope var for tabpanel

Beware! I’ve done what you suggested (scoped variable for settign tab) in the past, but it can cause problems in Safari and Firefox in maintaining focus in a field due to refresh issues. IE seems unaffected.