Version 6.3.8 für Windows
 —  Natural for Ajax  —

NJX:XCIWPINFO2

The NJX:XCIWPINFO2 control is used to access and exchange the function tree that is shown in the "Functions" frame (MFWPFUNCTIONS) as a whole. In order to perform incremental changes in the function tree, you should use the NJX:XCIWPFUNCTIONS control.

The NJX:XCIWPINFO2 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:xciwpinfo2>
    </njx:xciwpinfo2>
</natpage>

Top of page

Adapter Interface

1 XCIWPINFO_CHANGEINDEX (I4)
1 XCIWPINFO_NODE (1:*)
2 ACTIVITYURL (A) DYNAMIC
2 BUTTONSTYLE (A) DYNAMIC
2 DRAGINFO (A) DYNAMIC
2 FOLLOWPAGESWITCHES (L)
2 HEIGHT (I4)
2 ICONURL (A) DYNAMIC
2 LEFT (I4)
2 LEVEL (I4)
2 NAME (A) DYNAMIC
2 ONLYONEINSTANCE (L)
2 OPENED (I4)
2 TARGET (A) DYNAMIC
2 TOOLTIP (A) DYNAMIC
2 TOP (I4)
2 TREECLASS (A) DYNAMIC
2 TREESTYLE (A) DYNAMIC
2 TYPE (A) DYNAMIC
2 WIDTH (I4)

Each occurrence in the array XCIWPINFO_NODE describes a node in the function tree. The function tree consists of up to three levels: topics, folders and nodes.

Topic

The following structure elements are used to describe a topic:

Element Meaning
BUTTONSTYLE Style info that is passed to the button representing the topic.
ICONURL The button that represents this topic may have an additional icon in front of the text. Use this parameter to set the icon URL.
LEVEL

The following definition means "This is a topic":

LEVEL = 1

NAME Name of the topic.
OPENED

The following definition means "The topic is closed":

OPENED = 0

The following definition means "The topic is opened":

OPENED = 1

TOOLTIP Text of the tooltip for the topic.
TREECLASS Set the style class for rendering the tree area of the topic. There are ten standard style classes available in the default style sheet: PLACETOPIC1ClientTree to WORKPLACETOPIC10ClientTree. These style sheets can be maintained with the style sheet editor of the Application Designer.
TREESTYLE Background style for the tree. For example, you can define background colors and background pictures. Avoid the usage of single quote (') and double-quote (") characters.
Folder

The following structure elements are used to describe a folder:

Element Meaning
DRAGINFO Any information that is useful to react on a drop event. The single quote (') and backslash (\) characters are not allowed.
LEVEL

The following definitions mean "This is a folder":

LEVEL = 2 and OPENED = 0

or

LEVEL = 2 and OPENED = 1

NAME Name of the folder.
OPENED

The following definition means "The folder is closed":

OPENED = 0

The following definition means "The folder is opened":

OPENED = 1

TOOLTIP Text of the tooltip for the folder.
Node that opens a page in the "Content" frame

The following structure elements are used to describe a node that opens an Application Designer page or HTML page in the "Content" frame:

Element Meaning
ACTIVITYURL The URL to be loaded when the user clicks on a node. You can append parameters to the URL.
DRAGINFO Any information that is useful to react on a drop event. The single quote (') and backslash (\) characters are not allowed.
FOLLOWPAGESWITCHES If true, the workplace keeps the information when the user switches inside the content area from one page to the next. If the user reinvokes the page, the page to which the user switched last is shown, not the one from the ACTIVITYURL. The use of FOLLOWPAGESWITCHES only makes sense if ONLYONEINSTANCE is set to true.
ICONURL The URL for the icon which is shown in front of the name.
LEVEL

The following definition creates a node on level 2, that is, directly under a topic:

LEVEL = 2 and OPENED = 2

The following definition creates a node on level 3, that is, under a folder:

LEVEL = 3

NAME Name of the node.
ONLYONEINSTANCE A page with the corresponding name is only started once inside the workplace. If the page already exists, no new page is started but the existing one is used.
OPENED See the above description for LEVEL.
TOOLTIP Text of the tooltip for the tree node.
TYPE "cis" to open an Application Designer page, or "html" to open an HTML page.
Node that opens a page in a pop-up window

The following structure elements are used to describe a node that opens an Application Designer page or HTML page in a pop-up window:

Element Meaning
ACTIVITYURL The URL to be loaded when the user clicks on a node. You can append parameters to the URL.
DRAGINFO Any information that is useful to react on a drop event. The single quote (') and backslash (\) characters are not allowed.
HEIGHT Set the dimension of the pop-up in pixels.
ICONURL The URL for the icon which is shown in front of the name.
LEFT Set the relative position of the pop-up in pixels.
LEVEL

The following definition creates a node on level 2, that is, directly under a topic:

LEVEL = 2 and OPENED = 2

The following definition creates a node on level 3, that is, under a folder:

LEVEL = 3

NAME Name of the node.
OPENED See the above description for LEVEL.
TOOLTIP Text of the tooltip for the tree node.
TOP Set the relative position of the pop-up in pixels.
TYPE "cispopup" to open an Application Designer page, or "htmlpopup" to open an HTML page.
WIDTH Set the dimension of the pop-up in pixels.
Node that opens a page in a target frame

The following structure elements are used to describe a node that opens an Application Designer page or HTML page in a target frame other than the "Content" frame:

Element Meaning
ACTIVITYURL The URL to be loaded when the user clicks on a node. You can append parameters to the URL.
DRAGINFO Any information that is useful to react on a drop event. The single quote (') and backslash (\) characters are not allowed.
ICONURL The URL for the icon which is shown in front of the name.
LEVEL

The following definition creates a node on level 2, that is, directly under a topic:

LEVEL = 2 and OPENED = 2

The following definition creates a node on level 3, that is, under a folder:

LEVEL = 3

NAME Name of the node.
OPENED See the above description for LEVEL.
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.
TOOLTIP Text of the tooltip for the tree node.
TYPE

"cistarget": Open an Application Designer page.

"htmltarget": Open an HTML page.

When the structure is passed to the application, it contains the information about the current function tree. The application may change this information and return it. In order to indicate that the function tree shall be updated in the user interface, the application must modify the value of XCIWPINFO_CHANGEINDEX on return. This is achieved, for instance, by the following statement:

ADD 1 TO XCIWPINFO_CHANGEINDEX

Top of page