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:
The XML code for the example looks as follows:
<natpage xmlns:njx="http://www.softwareag.com/njx/njxMapConverter">
<njx:xciwpinfo2>
</njx:xciwpinfo2>
</natpage>
1 XCIWPINFO_CHANGEINDEX (I4) 1 XCIWPINFO_NODE (1:*) 2 ACTIVITYID (U) DYNAMIC 2 ACTIVITYURL (U) DYNAMIC 2 BUTTONSTYLE (U) DYNAMIC 2 DRAGINFO (U) DYNAMIC 2 FOLLOWPAGESWITCHES (L) 2 HEIGHT (I4) 2 ICONURL (U) DYNAMIC 2 LEFT (I4) 2 LEVEL (I4) 2 NAME (U) DYNAMIC 2 ONLYONEINSTANCE (L) 2 OPENED (I4) 2 TARGET (U) DYNAMIC 2 TEXTID (U) DYNAMIC 2 TOOLTIP (U) DYNAMIC 2 TOOLTIPID (U) DYNAMIC 2 TOP (I4) 2 TREECLASS (U) DYNAMIC 2 TREESTYLE (U) DYNAMIC 2 TYPE (U) DYNAMIC2 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 BUTTONSTYLEStyle info that is passed to the button representing the topic. ICONURLThe button that represents this topic may have an additional icon in front of the text. Use this parameter to set the icon URL. LEVELThe following definition means "This is a topic":
LEVEL = 1NAMEName of the topic. TEXTIDMulti language dependent text that is displayed inside the control. The TEXTIDis translated into a corresponding string at runtime.OPENEDThe following definition means "The topic is closed":
OPENED = 0The following definition means "The topic is opened":
OPENED = 1TOOLTIPText of the tooltip for the topic. TOOLTIPIDMulti language dependent text that is displayed inside the control. The TOOLTIPIDis translated into a corresponding string at runtime.TREECLASSSet the style class for rendering the tree area of the topic. There are ten standard style classes available in the default style sheet: PLACETOPIC1ClientTreetoWORKPLACETOPIC10ClientTree. These style sheets can be maintained with the style sheet editor of the Application Designer.TREESTYLEBackground 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 DRAGINFOAny information that is useful to react on a drop event. The single quote (') and backslash (\) characters are not allowed. LEVELThe following definitions mean "This is a folder":
LEVEL >= 2andOPENED = 0or
LEVEL >= 2andOPENED = 1NAMEName of the folder. TEXTIDMulti language dependent text that is displayed inside the control. The TEXTIDis translated into a corresponding string at runtime.OPENEDThe following definition means "The folder is closed":
OPENED = 0The following definition means "The folder is opened":
OPENED = 1TOOLTIPText of the tooltip for the folder. TOOLTIPIDMulti language dependent text that is displayed inside the control. The TOOLTIPIDis translated into a corresponding string at runtime.- 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 ACTIVITYURLThe URL to be loaded when the user clicks on a node. You can append parameters to the URL. DRAGINFOAny information that is useful to react on a drop event. The single quote (') and backslash (\) characters are not allowed. FOLLOWPAGESWITCHESIf 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 ofFOLLOWPAGESWITCHESonly makes sense ifONLYONEINSTANCEis set to true.The following applies for HTML pages: Registering of the navigation is only supported for HTML pages in the frame buffer. This means that you have to set the
framebuffersizeparameter in the cisconfig.xml file correspondingly.ICONURLThe URL for the icon which is shown in front of the name. LEVELThe following definition creates a node on level 2, that is, directly under a topic:
LEVEL = 2andOPENED = 2The following definition creates a node on level 3, that is, under a folder:
LEVEL = 3andOPENED = 2NAMEName of the node. TEXTIDMulti language dependent text that is displayed inside the control. The TEXTIDis translated into a corresponding string at runtime.ONLYONEINSTANCEA 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. OPENEDSee the above description for LEVEL.TOOLTIPText of the tooltip for the tree node. TOOLTIPIDMulti language dependent text that is displayed inside the control. The TOOLTIPIDis translated into a corresponding string at runtime.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 ACTIVITYURLThe URL to be loaded when the user clicks on a node. You can append parameters to the URL. DRAGINFOAny information that is useful to react on a drop event. The single quote (') and backslash (\) characters are not allowed. HEIGHTSet the dimension of the pop-up in pixels. ICONURLThe URL for the icon which is shown in front of the name. LEFTSet the relative position of the pop-up in pixels. LEVELThe following definition creates a node on level 2, that is, directly under a topic:
LEVEL = 2andOPENED = 2The following definition creates a node on level 3, that is, under a folder:
LEVEL = 3andOPENED = 2NAMEName of the node. TEXTIDMulti language dependent text that is displayed inside the control. The TEXTIDis translated into a corresponding string at runtime.OPENEDSee the above description for LEVEL.TOOLTIPText of the tooltip for the tree node. TOOLTIPIDMulti language dependent text that is displayed inside the control. The TOOLTIPIDis translated into a corresponding string at runtime.TOPSet the relative position of the pop-up in pixels. TYPE"cispopup" to open an Application Designer page, or "htmlpopup" to open an HTML page. WIDTHSet 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 ACTIVITYURLThe URL to be loaded when the user clicks on a node. You can append parameters to the URL. DRAGINFOAny information that is useful to react on a drop event. The single quote (') and backslash (\) characters are not allowed. ICONURLThe URL for the icon which is shown in front of the name. LEVELThe following definition creates a node on level 2, that is, directly under a topic:
LEVEL = 2andOPENED = 2The following definition creates a node on level 3, that is, under a folder:
LEVEL = 3andOPENED = 2NAMEName of the node. TEXTIDMulti language dependent text that is displayed inside the control. The TEXTIDis translated into a corresponding string at runtime.OPENEDSee the above description for LEVEL.TARGETName 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. TOOLTIPText of the tooltip for the tree node. TOOLTIPIDMulti language dependent text that is displayed inside the control. The TOOLTIPIDis translated into a corresponding string at runtime.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