cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Adobe Offline Form

Former Member
0 Kudos

In the portal, the after attaching the roles, an error is shown while on the role.

"com.sap.tc.webdynpro.progmodel.context.ContextException: Node(AdderessTypeSelectView.vnAddress.vnData): cannot bind or add elements because the node has no valid parent "

Accepted Solutions (1)

Accepted Solutions (1)

chintan_virani
Active Contributor
0 Kudos

Umang,

This exception occurs you are trying to add a child to a parent element not yet created. In your case vnAddress is the parent and vnData is its child if I am not mistaken.

So in your code you should first create an element of vnAddress and bind it and then create an element of vnData and bind / add it.

So your code should look like :

// Create and add parent first.
	IAddressTypeSelectView.IVnAddressElement  addressEle = wdContext.createVnAddressElement();
	wdContext.nodeVnAddress().bind(addressEle);

// Next manipulate with child.
	IAddressTypeSelectView.IVnDataElement dataEle = wdContext.createVnDataElement();
	wdContext.nodeVnData().addElement(dataEle);

Chintan

Answers (0)