Version 4.2.6 for Mainframes
 —  Natural for Ajax  —

NJX:XCIACCESS2

The NJX:XCIWPACCESS2 control is used to open, activate and close content pages in the workplace, to open pages as pop-up windows, or to open pages in a frame.

This control provides a functional API to the workplace. It does not have design time properties nor does it raise events.

The following topics are covered below:


Example

The XML code for the example looks as follows:

<natpage xmlns:njx="http://www.softwareag.com/njx/njxMapConverter">
    <njx:xciwpaccess2>
    </njx:xciwpaccess2>
</natpage>

Top of page

Adapter Interface

1 XCIWPACCESS2 (1:*)
2 CMDADDPAGETOWORKPLACE
3 ADD_ACTIVITYURL (A) DYNAMIC
3 ADD_NAME (A) DYNAMIC
3 ADD_TYPE (A) DYNAMIC
2 CMDCLOSECONTENTPAGE (A) DYNAMIC
2 CMDINVOKEMETHODINCONTENTPAGE
3 METHOD (A) DYNAMIC
2 CMDOPENPAGEINTARGET
3 OPEN_ACTIVITYURL (A) DYNAMIC
3 OPEN_TARGET (A) DYNAMIC
3 OPEN_TYPE (A) DYNAMIC
2 CMDOPENPOPUP
3 POPUP_ACTIVITYURL (A) DYNAMIC
3 POPUP_HEIGHT (I4)
3 POPUP_LEFT (I4)
3 POPUP_TITLE (A) DYNAMIC
3 POPUP_TOP (I4)
3 POPUP_TYPE (A) DYNAMIC
3 POPUP_WIDTH (I4)
2 CMDSHOWPAGEINWORKPLACE
3 SHOW_ACTIVITYURL (A) DYNAMIC
3 SHOW_NAME (A) DYNAMIC
3 SHOW_TYPE (A) DYNAMIC

Each occurrence in the array XCIWPACCESS2 describes a command that is to be sent to the workplace API. Several commands can be sent in a sequence. For each command, a corresponding substructure must be filled.

Open a page in the "Content" frame

The following structure elements belong to CMDADDPAGETOWORKPLACE:

Element Meaning
ADD_ACTIVITYURL The URL to be loaded.
ADD_NAME The name to be displayed in the "Active Functions" frame.
ADD_TYPE

"cis": Open an Application Designer page.

"html": Open an HTML page.

Open a page in a pop-up window

The following structure elements belong to CMDOPENPOPUP:

Element Meaning
POPUP_ACTIVITYURL The URL to be loaded. You can append parameters to the URL.
POPUP_TITLE Title of the pop-up window.
POPUP_TYPE

"cis": Open an Application Designer page.

"html": Open an HTML page.

POPUP_LEFT Set the relative position of the pop-up in pixels.
POPUP_TOP Set the relative position of the pop-up in pixels.
POPUP_WIDTH Set the dimension of the pop-up in pixels.
POPUP_HEIGHT Set the dimension of the pop-up in pixels.
Open a page in a target frame other than the "Content" frame

The following structure elements belong to CMDOPENPAGEINTARGET:

Element Meaning
OPEN_ACTIVITYURL The URL to be loaded. You can append parameters to the URL.
OPEN_TARGET Name of the target frame in which the page is to be opened. During workplace definition, you assign a target ID to each frame you define.
OPEN_TYPE

"cis": Open an Application Designer page.

"html": Open an HTML page.

Activate an already open page in the "Content" frame

The following structure elements belong to CMDSHOWPAGEINWORKPLACE:

Element Meaning
SHOW_ACTIVITYURL The URL to be loaded. You can append parameters to the URL.
SHOW_NAME Name of the page in the "Active Functions" frame.
SHOW_TYPE

"cis": Activate an Application Designer page.

"html": Activate an HTML page.

Close the currently active page in the "Content" frame

Assign the value "closeit" to CMDCLOSECONTENTPAGE.

Close all pages in the "Content" frame

Assign the value "all" to CMDCLOSECONTENTPAGE.

Invoke a method (raise an event) in the currently active page in the "Content" frame

The following structure element belongs to CMDINVOKEMETHODINCONTENTPAGE:

Element Meaning
METHOD Name of the method/event.

Top of page