You are on page 1of 15

IBM Global Services

Tabstrip Control

Tabstrip Control | 6.20.02

March-2005

2005 IBM Corporation

IBM Global Services

Objectives
 The participants will be able to:
 Create tabstrips in the graphical screen painter.  Create subscreens for use with tabstrips.  Integrate tabstrips in a module pool program:
 With the application server.  Without the application server.

Tabstrip Control | 6.20.02

March-2005

2005 IBM Corporation

IBM Global Services

What are Tabstrips?

MAL FEM PIC

SAP R/3

1991 1991

PIC

FEM

MAL

Year

Year

1991

Winner The Silence of the Nominees


Beauty and the Beast Bugsy

Winner The Silence of the Nominees


Beauty and the Beast Bugsy

Tabstrips allow users to access multiple subscreens on one normal screen.


3 Tabstrip Control | 6.20.02 March-2005 2005 IBM Corporation

IBM Global Services

Creating Tabstrip Controls

I. Define your tabstrip in the top include. II. Use the Graphical Screen Painter to create the tabstrip.
A. Creates new tabs & pushbuttons. B. Creates tabstrips.

Tabstrips cannot be created in alphanumeric mode.


4 Tabstrip Control | 6.20.02 March-2005 2005 IBM Corporation

IBM Global Services

Creating Tabstrip Controls (Contd.)


A. Define subscreen areas and subscreen attributes within each tab page. B. Give your tabs a function code and specify the appropriate function type. C. Reference the subscreen in the dictionary attributes of your tab. SUB1

A Subscreen Area B

C
5 Tabstrip Control | 6.20.02 March-2005 2005 IBM Corporation

IBM Global Services

Subscreens: A Review

 Use the Screen Attributes to specify the screen type.  Tabstrips can only display subscreens.
6 Tabstrip Control | 6.20.02 March-2005 2005 IBM Corporation

IBM Global Services

Changing Screens Within Tabstrips


With application server

Screen fields are populated as different tabs are selected. Without application server
INFO HOME

Screen fields for all tabs are populated before screen is displayed.
7 Tabstrip Control | 6.20.02 March-2005

WORK

2005 IBM Corporation

IBM Global Services

Navigating Between Tabs With the Application Server


Create a Module to Switch Tabs
TAB1 TAB2 TAB3

All tabs must use the same subscreen area. Coding Steps

SUB1

Call Subscreen in PBO

1. Determine tabs function code. 2. Set active tab field to the fcode. 3. Set a variable to subscreen #. 4. Call subscreen area. 5. Include program name and subscreen #.
8 Tabstrip Control | 6.20.02 March-2005 2005 IBM Corporation

IBM Global Services

Navigating Between Tabs With the Application Server (Contd.)

Tabstrip Control | 6.20.02

March-2005

2005 IBM Corporation

IBM Global Services

Navigating Between Tabs Without the Application Server

TAB1

TAB2

TAB3

1. All tabs must use different subscreen areas. 2. Define function code type as P. 3. All subscreens must be called before the screen is displayed.

SUB3 SUB2 SUB1

10

Tabstrip Control | 6.20.02

March-2005

2005 IBM Corporation

IBM Global Services

Special Attributes for Tabstrip Controls

11

Tabstrip Control | 6.20.02

March-2005

2005 IBM Corporation

IBM Global Services

Demonstration
 Creating a module pool program with tab-strip controls.

12

Tabstrip Control | 6.20.02

March-2005

2005 IBM Corporation

IBM Global Services

Practice
 Creating a module pool program with tab-strip controls.

13

Tabstrip Control | 6.20.02

March-2005

2005 IBM Corporation

IBM Global Services

Summary
 Tabstrips allow the user to navigate between different subscreens.  Tabstrips are defined in the top include by using the CONTROL statement. CONTROLS: <tabstrip name> TYPE TABSTRIP.  Subscreens are essential when creating tabstrips.  Subscreens can be assigned statically or dynamically in a tabstrip control.

14

Tabstrip Control | 6.20.02

March-2005

2005 IBM Corporation

IBM Global Services

Questions
 What are the advantages of using tab-strip controls ?  Are using sub-screens mandatory for using tab-strip controls ?

15

Tabstrip Control | 6.20.02

March-2005

2005 IBM Corporation

You might also like