GetPageType
Mon 01 January 2018Syntax
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
| 
      Field or Control  | 
    
      Definition  | 
   
|---|---|
| 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  | 
     
       The main, or primary fluid page. A main fluid page definition contains the bulk of the transaction fields and controls.  | 
    
| 
       1  | 
     
       %SubPage  | 
     
       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  | 
     
       A standard secondary page that you access through another page, usually by clicking a link or push button.  | 
    
| 
       3  | 
     
       %PopupPage  | 
     
       A standard, display-only pop-up page that you access through another page, usually by clicking a link or push button.  | 
    
| 
       4  | 
     
       %HeaderPage  | 
     
       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  | 
     
       A page of type Side Page 1 (left panel).  | 
    
| 
       6  | 
     
       %FooterPage  | 
     
       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  | 
     
       %SidePage2  | 
     
       A page of type Side Page 2(right panel).  |