INCLUDE Keyword

Purpose

Includes an Ingres/ICE HTML or macro document document into the current document.

Syntax

<!-- #ICE [REPEAT] INCLUDE=`[business_unit_name
           
'[']document_name[']']?{variable_name=value}[&...]`
            [TYPE=`HTML|MULTI|REPORT|EXE`]
-->


Description

Parameters                          The following table lists the parameters used with the INCLUDE keyword:

 

Parameter

Description

business_unit_name

The name of the business unit containing the document to be included.

document_name

The name of the document to be included.

variable_name

The name of the variable.

value

The value assigned to the variable.

TYPE Option                         The TYPE option is used to distinguish the action the Ingres/ICE server should take when processing the included file.  This allows reuse of common component documents.

There are four selections when using the TYPE option with the INCLUDE keyword:

n         HTML (pages)

        This is the default option.  When you include a page, the document can access every page variable defined in the current page.  You can add new parameters in the include call.  If you include a page with no REPEAT, the user must be granted read permission for this document.  If you include a page with a REPEAT, the user must be granted execute and read permissions for this document.

n         MULTI (facets)

To include a facet, the user must be granted the execute permission for the document.

n         REPORT (reports)

n         EXE (applications)

REPEAT Option                   See the FUNCTION keyword for information on the REPEAT option.

Examples

This example shows the cascading style sheet file that is included in most of the documents within the plays business unit:

<!-- #ICE INCLUDE=`plays[play_styleSheet.css]`

   TYPE=`MULTI` -->

The following code sample is included in most of the Globe Shop documents.  It displays an action bar that has various parts activated under parameter (variable) control:

<!-- #ICE REPEAT INCLUDE=
            `plays[play_shopAction-h.html]?View=Yes`-->