chapter 20.02_tabstrip control

15
8/13/2019 Chapter 20.02_Tabstrip Control http://slidepdf.com/reader/full/chapter-2002tabstrip-control 1/15 IBM Global Services © 2005 IBM Corporation Tabstrip Control | 6.20.02 March-2005 Tabstrip Control

Upload: rnitingupta

Post on 04-Jun-2018

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Chapter 20.02_Tabstrip Control

8/13/2019 Chapter 20.02_Tabstrip Control

http://slidepdf.com/reader/full/chapter-2002tabstrip-control 1/15

IBM Global Services

© 2005 IBM CorporationTabstrip Control | 6.20.02 March-2005

Tabstrip Control

Page 2: Chapter 20.02_Tabstrip Control

8/13/2019 Chapter 20.02_Tabstrip Control

http://slidepdf.com/reader/full/chapter-2002tabstrip-control 2/15

IBM Global Services

© 2005 IBM Corporation2 March-2005Tabstrip Control | 6.20.02

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.

Page 3: Chapter 20.02_Tabstrip Control

8/13/2019 Chapter 20.02_Tabstrip Control

http://slidepdf.com/reader/full/chapter-2002tabstrip-control 3/15

IBM Global Services

© 2005 IBM Corporation3 March-2005Tabstrip Control | 6.20.02

MAL

1991

FEM

PIC

Year

Winner

1991

NomineesBeauty and the Beast

Bugsy

The Silence of the

SAP R/3

FEM MAL

PIC

Year

Winner

1991

Nominees

Beauty and the Beast

Bugsy

The Silence of the

What are Tabstrips?

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

Page 4: Chapter 20.02_Tabstrip Control

8/13/2019 Chapter 20.02_Tabstrip Control

http://slidepdf.com/reader/full/chapter-2002tabstrip-control 4/15

IBM Global Services

© 2005 IBM Corporation4 March-2005Tabstrip Control | 6.20.02

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.

Page 5: Chapter 20.02_Tabstrip Control

8/13/2019 Chapter 20.02_Tabstrip Control

http://slidepdf.com/reader/full/chapter-2002tabstrip-control 5/15

IBM Global Services

© 2005 IBM Corporation5 March-2005Tabstrip Control | 6.20.02

Subscreen Area

SUB1 

 A. Define subscreen areas and subscreen attributes withineach 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. 

Creating Tabstrip Controls (Contd.)

Page 6: Chapter 20.02_Tabstrip Control

8/13/2019 Chapter 20.02_Tabstrip Control

http://slidepdf.com/reader/full/chapter-2002tabstrip-control 6/15

IBM Global Services

© 2005 IBM Corporation6 March-2005Tabstrip Control | 6.20.02

 Use the Screen Attributes to specify the screen type.

 Tabstrips can only display subscreens.

Subscreens: A Review

Page 7: Chapter 20.02_Tabstrip Control

8/13/2019 Chapter 20.02_Tabstrip Control

http://slidepdf.com/reader/full/chapter-2002tabstrip-control 7/15

IBM Global Services

© 2005 IBM Corporation7 March-2005Tabstrip Control | 6.20.02

INFOWithout application server  

Screen fields for

all tabs are

populated

before screen is

displayed. 

HOME

WORK

With application server  

Screen fields

are populated

as different tabsare selected. 

Changing Screens Within Tabstrips

Page 8: Chapter 20.02_Tabstrip Control

8/13/2019 Chapter 20.02_Tabstrip Control

http://slidepdf.com/reader/full/chapter-2002tabstrip-control 8/15

IBM Global Services

© 2005 IBM Corporation8 March-2005Tabstrip Control | 6.20.02

TAB1  TAB2  TAB3 

SUB1

Create a Module to Switch Tabs

Call Subscreen in PBO

 All tabs must

use the samesubscreen area.

2. Set active tab field to the fcode.

1. Determine tab’s function code. 

3. Set a variable to subscreen #.

4. Call subscreen area.

5. Include program name

and subscreen #.

Coding Steps

Navigating Between Tabs With the Application Server

Page 9: Chapter 20.02_Tabstrip Control

8/13/2019 Chapter 20.02_Tabstrip Control

http://slidepdf.com/reader/full/chapter-2002tabstrip-control 9/15

IBM Global Services

© 2005 IBM Corporation9 March-2005Tabstrip Control | 6.20.02

Navigating Between Tabs With the Application Server (Contd.)

Page 10: Chapter 20.02_Tabstrip Control

8/13/2019 Chapter 20.02_Tabstrip Control

http://slidepdf.com/reader/full/chapter-2002tabstrip-control 10/15

IBM Global Services

© 2005 IBM Corporation10 March-2005Tabstrip Control | 6.20.02

SUB3

TAB3 TAB2TAB1

SUB2

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.

SUB1

Navigating Between Tabs Without the Application Server

Page 11: Chapter 20.02_Tabstrip Control

8/13/2019 Chapter 20.02_Tabstrip Control

http://slidepdf.com/reader/full/chapter-2002tabstrip-control 11/15

IBM Global Services

© 2005 IBM Corporation11 March-2005Tabstrip Control | 6.20.02

Special Attributes for Tabstrip Controls

Page 12: Chapter 20.02_Tabstrip Control

8/13/2019 Chapter 20.02_Tabstrip Control

http://slidepdf.com/reader/full/chapter-2002tabstrip-control 12/15

IBM Global Services

© 2005 IBM Corporation12 March-2005Tabstrip Control | 6.20.02

Demonstration

Creating a module pool program with tab-strip controls.

Page 13: Chapter 20.02_Tabstrip Control

8/13/2019 Chapter 20.02_Tabstrip Control

http://slidepdf.com/reader/full/chapter-2002tabstrip-control 13/15

IBM Global Services

© 2005 IBM Corporation13 March-2005Tabstrip Control | 6.20.02

Practice

Creating a module pool program with tab-strip controls.

Page 14: Chapter 20.02_Tabstrip Control

8/13/2019 Chapter 20.02_Tabstrip Control

http://slidepdf.com/reader/full/chapter-2002tabstrip-control 14/15

IBM Global Services

© 2005 IBM Corporation14 March-2005Tabstrip Control | 6.20.02

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.

Page 15: Chapter 20.02_Tabstrip Control

8/13/2019 Chapter 20.02_Tabstrip Control

http://slidepdf.com/reader/full/chapter-2002tabstrip-control 15/15

IBM Global Services

© 2005 IBM Corporation15 March-2005Tabstrip Control | 6.20.02

Questions

What are the advantages of using tab-strip controls ?

 Are using sub-screens mandatory for using tab-strip controls ?