on 07-24-2009 10:04 AM
Hi, all.
I made a recursive node in my context. So it is like a tree.
When I choosed one child node in my tree, how can I get it`s current element?
Thanks a lot.
Hi Louis
Check this PDF link
Also check this elearning link.It gives info of supply function
Regards
Ruturaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, all.
I think that I have to do something in wdDoModifyView method.
The following codes are from the tutorial:
treeNode.mappingOfOnAction().addSourceMapping("path", "selectedElement");
I know that "selectedElement" is the input parameter name of my action method, but I have no idea what is "path"?
Can anyone do me a favor.
Thx.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Louis
Check this link
Thanks
Tulasi Palnati
"path" is the name of the event parameter. You can also use the parameter "nodeElement" instead. The parameter mapping can and should be done at design-time (if available in your release). To do so, right-click the TreeNodeType instance in the Outline view and select "Parameter Mapping". In the dialog you can map event parameters to action parameters using drag-and-drop.
Armin
Hi Louis
Sorry for pointing to the wrong link
In Short:you have to add and map the path(of type String) for the event handler
In Sap Help clearly explains about the tree example please look into it.
http://help.sap.com/saphelp_nw70/helpdata/en/b2/8f5640f5f60272e10000000a155106/content.htm
or
Go to NWDS help Doc just serach for treenodeAPI.You will get complete example to handle this.
Thanks
Tulasi
Hi, Tulasi.
These are my codes in wdDoModifyView.
if(firstTime)
{
IWDTreeNodeType treenode = (IWDTreeNodeType)view.getElement("TreeNodeType");
treenode.mappingOfOnAction().addSourceMapping("path","select_element");
}
It`s very simple, but I got error when I executed my app.
I thought that I didn`t map the para correctly.
Edited by: Louis HUANG on Jul 28, 2009 4:26 AM
Hi Louis
Check out this link
Check this thread also
Thanks
Tulasi Palnati
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use this code,
if(firstTime)
{
IWDTreeNodeType treenode = (IWDTreeNodeType)view.getElement("TreeNodeType");
treenode.mappingOfOnAction().addSourceMapping("path","select_element");
}
Regards,
Sunaina Reddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.