on 01-18-2007 4:20 AM
how to display values stored in a tree structure in an input field .
whenever i will select a value in tree , the same value selected should be displayed in an input field , which is in another transperant container .
Using Parameter Mapping you can get selected elment at runtime.
To achieve this you have create an action at design time, and bind that action to TreeNodeType.
Create event parameter of type ContextNodeElement (Search for JAVA native Types) for that action .
You have to map this event parameter to the event handler parameter
if (firstTime) {
IWDTreeNodeType nodeType =
(IWDTreeNodeType) view.getElement("<NodeTypeID>");
nodeType.mappingOfOnAction().addSourceMapping(
"path","<parameterName>");
}
In OnAction method you will get selected element's reference from the event handler's parameter.
Get the value of the required attribute from this selected element and set it to input field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijay,
Please follow this tutorial, <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/90dae990-0201-0010-d886-ef4afe418d1e">creating Trees in Web Dynpro (12)</a>
This Tutorial exactly describes what you asked for.
Regards,
Amol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Vijay,
Do you use recursive node for tree or "regular" node/sub-nodes?
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijay,
Bind the same valueattribute to which the tree is bound to the inputfield !!
Regards, ANilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.