cancel
Showing results for 
Search instead for 
Did you mean: 

problem regarding webdynpro application

Former Member
0 Kudos

Hi,

I am narendra. I am facing problem when i was exceuting sample webdynpro

application (construting a Recursive and loadable webdynpro tree).

It shows that java.lang.NullPointerException is occured when i click the tree nodes.

There is a parameter mapping in this application which can map the tree node elements selected at run time with the action event parameters.

I think that the node which we select at runtime must not be able to passing to the action event parameters.

Here I am giving code of parameter mapping which might be leads to the problem.

public static void wdDoModifyView(IPrivateTreeView wdThis, IPrivateTreeView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)

{

//@@begin wdDoModifyView

if (firstTime) {

IWDTreeNodeType treeNode =

(IWDTreeNodeType) view.getElement("TheNode");

/* parameter mapping from parameter "path" to

  • parameter "selectedElement"

*/

treeNode.mappingOfOnAction().addSourceMapping(

"path",

"selectedElement");

/* parameter mapping from parameter "path" to

  • parameter "element".

*/

treeNode.mappingOfOnLoadChildren().addSourceMapping(

"path",

"element");

}

//@@end

}

can anyone help me?

Thanks in advance,

Narendra.M

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

How is the action parameter named, "element" or "selectedElement"? Why are you mapping to different action parameters?

Armin

Former Member
0 Kudos

Hi Armin,

Element parameter is required to know the which node has been selected

at run time so that we can add as many no of sub nodes as we can at run time

and also in this application we have an input field which displays selected file at run time that means if any file is selected that has to display in inputfield.For this purpose we are using another action parameter selectedElement.

so selectedElement parameter enables us to know which file has been selected at run time