GetPageType function

Syntax

GetPageType(Page.PAGE_NAME)

Description

Use the GetPageType function to return the page type—for example, header, footer, prompt, and so on.

Important:

Use this function within fluid applications only.

Parameters

Parameter Description

Page. PAGE_NAME

Specifies the page ID as a string value. Alternatively, you can use the %Page system variable (without the Page. reserved word) to specify the current page.

Returns

One of the following Integer values:

Numeric Value Constant Value Description

0

%MainPage

%MainPanel

The main, or primary fluid page. A main fluid page definition includes the outermost group box that acts as the overall container for the fluid page content.

1

%SubPage

%SubPanel

A standard subpage that contains a grouping of fields—such as an address block—which is defined to be reusable within multiple other page definitions.

2

%SecondaryPage

%SecondaryPanel

A standard secondary page that you access through another page, usually by clicking a link or push button.

3

%PopupPage

%PopupPanel

A standard, display-only pop-up page that you access through another page, usually by clicking a link or push button.

4

%HeaderPage

%HeaderPanel

A page displayed in the <header> section of the HTML acting as the banner area fixed at the top of every page within the fluid component.

5

%SidePage

%SidePage1

%SidePanel

A page of type Side Page 1 (left panel).

6

%FooterPage

%FooterPanel

A page displayed in the <footer> section of the HTML at the bottom of every page within the fluid component, containing elements related to the end of a transaction, such as a Save button.

7

%LayoutPage

%LayoutPanel

A fluid page layout template.

Note: Do not include layout pages within a fluid component definition.

8

%SearchPage

%SearchPanel

A page generated in <aside> section containing search pages.

9

%PromptPage

%PromptPanel

A fluid prompt page.

10

%MDTargetPage

%MasterDetailPanel

A Master&Detail Target page that displays the transactional fluid page for use within a master/detail component.

11

%SidePage2

%Side2Panel

A page of type Side Page 2 (right panel).

Example

If GetPageType(Page.QE_NUI_SHOP_FT) <> %FooterPage Then
...
End-If;
If GetPageType(Page.QE_NUI_SHOP_SIDE) <> %SidePage Then
...
End-If;