This sample demonstrates how you can programmatically get and set the full path in WebObjectTree.
This allows you to modify the value using your own custom JavaScript logic.
To support this feature and the ability to set keyboard focus, WebObjectTree exposes the following client-side methods:
1. This method returns the current full path selected.
function cwotGetFullPath(controlId)
- controlId - the control identifier of the WebObjectTree instance.
2. This method updates the current full path selected.
function cwotSetFullPath(controlId, fullPath)
- controlId - the control identifier of the WebObjectTree instance.
- fullPath - the current full path selected in the WebObjectTree control.
3. This method sets the keyboard focus to the control.
function cwotSetFocus(controlId, beginEdit)
- controlId - the control identifier of the WebObjectTree instance.
- beginEdit - a boolean value whether to begin an item edit operation.
In this sample, clicking the "Up" or "Down" arrows transfers the full path of a WebObjectTree and keyboard focus to the other instance.
These changes are made inside the web browser using client-side code that invokes all these methods.
Clicking the "Submit" button will display the full paths for your selections below:
Click the "Reset" link to clear your selection.