cancel
Showing results for 
Search instead for 
Did you mean: 

Binding Property of IWDFileDownload by run time

Former Member
0 Kudos

Hi,

currently I work with NW 2004 SP 16. My purpose is to create a FileDownload-UI by

run time. In this case I had to initialize the property of DATA with my URL before I put

the UI into my Container. But if I pass the value I get always the message below:

com.sap.tc.webdynpro.progmodel.context.ContextException: Path does not point to an

attribute, but to com.sap.tc.webdynpro.progmodel.generation.DelegatingView@122d793

My Code:


		IWDTransparentContainer transCon = (IWDTransparentContainer) 
			view.createElement(IWDTransparentContainer.class, "trans");

		IWDFileDownload fileDownload = (IWDFileDownload) 
			view.createElement(IWDFileDownload.class, "fileDownload");

		IWDAttributeInfo info1 = wdContext.getNodeInfo().getAttribute("url");
		
		fileDownload.bindData( info1 );

		transCon.addChild(fileDownload);	

regards,

Sharam

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Sorry, my path was wrong:

IWDAttributeInfo info1 =


wdContext.getNodeInfo().getChild("BAPI_GLOBAL_STRUC_FROM_R3").getChild("Output")
			.getChild("Glob_Struc").getAttribute("Url_Thumbnail");

regards,

Sharam

Former Member
0 Kudos

It's more robust to use the generated node and attribute names instead of string literals. If you do so, the compiler checks if the names are correct.

E.g.


wdContext.nodeGlob_Struc().getNodeInfo().getAttribute(IGlob_StrucElement.URL_THUMBNAIL);

Armin

Former Member
0 Kudos

Hello Armin,

the compiler can not find "IGlob_StrucElement" although my node is called "Glob_Struc". I use NW 2004 SP 16.

regards,

Sharam

Former Member
0 Kudos

The "typed" interfaces are only available if "typedAccessRequired" is activated, maybe that's not the case here.

Armin

Answers (0)