TransferNode
Mon 01 January 2018Syntax
TransferNode(new_instance, NODE.nodename, MENUNAME.menuname, MARKET.marketname, COMPONENT.componentname, PAGE.component_item_name, action [, keylist])
where keylist is a list of field references in the form:
[recordname.]field1 [, [recordname.]field2]. . .
OR
&RecordObject1 [, &RecordObject2]. . .
Description
Use the TransferNode function to transfer the user to a page in another Node, but within the same portal.
TransferNode can either start a new instance of the application and transfer to the new page, or close the old page and transfer to the new one in the same instance of PeopleTools.
Component scoped and Global scoped variables are not available if the new page is in a different node.
Entering null values ("") for the node opens the new component within the current node or portal.
If you want to transfer the end user to another portal, use the TransferPortal function.
If you provide a valid search key for the new page in the optional fieldlist , the new page opens directly, using the values provided from fieldlist as search key values. If no key is provided, or if the key is invalid, the search dialog displays, allowing the end user to search for a row.
Note: If Force Search Processing is specified in Application Designer for the component, the search dialog always displays, whether the keylist is provided or not.
If TransferNode is called in a RowInit PeopleCode program, the PeopleCode program is terminated. However, the component processor continues with its RowInit processing, calling RowInit on the other fields. The actual transfer won't happen until after that completes. You may want to place any TransferPage functions in the Activate event for the page, or later in the Component Processor event flow.
See .
Parameters
Field or Control |
Definition |
---|---|
new_instance |
Set this parameter to True to start a new application instance, or to False to use the current window and replace the page already displayed. |
nodename |
Specify the name of the node that contains the content, prefixed with the reserved word NODE . You can also use a string, such as %Node, for this value. |
menuname |
Specify the name of the menu containing the content, prefixed with the reserved word MENUNAME . You can also use a string, such as %Menu, for this value. |
marketname |
Specify the name of the market of the component, prefixed with the reserved word MARKET . You can also use a string, such as %Market, for this value. |
component_item_name |
Specify the component item name of the page to be displayed on top of the component when it displays. The component item name is specified in the component definition. If you specify a page, it must be prefixed with the keyword PAGE . You can also specify a null ("") for this parameter. |
action |
Specify a single-character code. Valid actions are:
You can also specify a null ("") for this parameter. |
keylist |
An optional list of field specifications used to select a unique row at level zero in the page you are transferring to, by matching keys in the page you are transferring from. It can also be an already instantiated record object. If a record object is specified, any field of that record object that is also a field of the search record for the destination component is added to keylist. The keys in the fieldlist must uniquely identify a row in the "to" page search record. If a unique row is not identified, of if Force Search Processing has been selected, the search dialog appears. If the keylist parameter is not supplied then the destination component's search key must be found as part of the source components level 0 record buffer. |
Returns
A Boolean value: True if function completed successfully, False otherwise.