
The HistoryEntry object represents an entry in the navigation history.
|
Parameter |
Description |
|
URL |
ID (URL) of the navigation node |
|
Title |
Title of the navigation node |
|
Params |
A string that represents a set of GET parameters to pass for navigation to this history entry. For more information about defining these parameters, see Defining Parameters for GET Requests . |
|
Context |
The URL of the navigation context node |
|
postBody |
A string that represents a set of POST parameters to be passed when navigating to this entry. To prepare this string, use the following code: var postBody = new Array(); postBody.push({name:"param1" , value:"value1"}, {name:"param2" , value:"value2"}); |
|
pathIndexes |
A comma-separated list of indexes in the navigation tree hierarchy, indicating the sequence of navigation steps to this entry. |
|
fullURL |
The full PCD path to the node |
Use the following syntax to create a history entry:
EPCM.getSAPTop().LSAPI.getHistoryPlugin().createEntry(URL, title, params, context, postBody, pathIndexes, fullURL)
The following example illustrates creating a history entry for a navigation node. The parameters are defined using the methods of the NavigationNode object. For more information, see NavigationNode Object .
var postBody = new Array();
postBody.push({name:"param1" , value:"value1"}, {name:"param2" , value:"value2"});
EPCM.getSAPTop().LSAPI.getHistoryPlugin().createEntry(node.getName(), node.getTitle(), "a=1=2", contextNode.getName(), postBody, "1,0,1", node.getLaunchURL());