cancel
Showing results for 
Search instead for 
Did you mean: 

Action on basic Tree

Former Member
0 Kudos

Hai to all

i want to know how to do this.

treetype is item treetype.

under this 3 childs are there.when ever i click on child the curresponding childview should display.

i maintained 3 views under having inbound plug.

in tree view i maintained one outbound plug.

how to triger cursponding view inbound plug.

Accepted Solutions (1)

Accepted Solutions (1)

nikhil_bose
Active Contributor
0 Kudos

1. Create Action showView() with one parameter named element of type your TreeNodeType binded node element. (say IPrivate<CompName>View.ITreeNodeElement)

2. In wdDoModifyView, you need to do parameter mapping.


  IWDTreeNodeType treenode = (IWDTreeNodeType)view.getElement("TreeNodeTypeName");
    treenode.mappingOfOnAction().addSourceMapping("path","element");

3. in onAction showView()


String target_view = element.getName(); // lead selected element's Name attribute
if("first".equals(target_view))
  wdThis.wdFirePlug_ToFirstView();   // Fire plug out for first view
. 
.       // same condition checking for other views

nikhil

Former Member
0 Kudos

Here what is " path" ,element.

nikhil_bose
Active Contributor
0 Kudos

"path" gives the current node element of the tree.

see documentation. [TreeNode Type API|http://help.sap.com/saphelp_nw04s/helpdata/en/d4/69ea3d5506fb34e10000000a114084/content.htm]

nikhil

Answers (0)