QuickStart Tab pages

LANSA WAM

QuickStart - Tab pages

To use the Tab pages weblet, open your webroutine in the LANSA Editor and follow these steps:

1.  Click on the Weblets tab, select Standard Weblets from the drop-down list near the top and locate the Tab pages weblet.

2.  Drag and drop the weblet onto your page in the Design view Make sure the weblet on the page is selected and then click on the Details tab.

3.  Click the ellipsis button next to the tabs property to open the tab items designer and define your tabs Click OK to close the tab items designer when complete.

4.  In the Design view, click on your first tab to activate its page.

5.  Add content to the tab page by cutting and pasting content from elsewhere on your web page or by dragging and dropping fields and/or weblets onto the tab page If you will be adding several fields you may wish to begin by adding a table to contain them – to do so, right-click in the tab page and select Insert, Table from the pop-up menu.

6.  If you prefer that your tab page displays content provided by another webroutine, then you need to add a navigation panel and set its properties To do so follow these steps:

a.  Click on the Weblets tab, select Standard Weblets from the drop-down list near the top and locate the Navigation panel weblet.

b.  Drag and drop the weblet onto your tab page in the Design view Make sure the Navigation panel weblet on the tab page is selected and then click on the Details tab.

c.  Set the nav_wamname and nav_wrname properties (or the nav_url property) to identify the webroutine (or url) that provides the content You may wish to set other properties for the Navigation panel such as the wait_content and related properties.

7.  Repeat from step 4 for each tab that you have defined in your tab pages weblet.

Note: A bug in current versions of Internet Explorer causes the border to disappear from around the content area of empty tabs. To prevent this behaviour in Internet Explorer, make sure all your tabs contain something.