cancel
Showing results for 
Search instead for 
Did you mean: 

com.sap.ide.webdynpro.uielementdefinitions.Resource

vipin_v2
Participant
0 Kudos

Hi,

Little confused with the way file upload UI element and it' s mapped resource attribute of type com.sap.ide.webdynpro.uielementdefinitions.Resource works.

Searched a lot over here but couldn' t find any posts which gives a clear picture.

I am trying to understand the way file upload UI element works, that is, once user selects a file using browse button what happens next, where is the (file/ data) stored.

Any helpful inputs will be highly appreciated.

Thanks In Advance,

Vipin.

Edited by: Vipin on Jun 22, 2011 8:16 AM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

See tutorial in WD Java Demo Kit.

http://wiki.sdn.sap.com/wiki/display/WDJava/WebDynproforJavaDemo+Kit

Former Member
0 Kudos

Hello,

Once you upload a file it gets stored in your controller context in binary format....0010100101011010....

Now from this context you can either reuse the content in current aplication at runtime...or you can later save this file on server.

But once upload is done...its only there in your controller context.

You first need to define a context attribute of type com.sap.ide.webdynpro.uielementdefinitons.Resource. The Resource type is a special dictionary simple type for MIME resources. At runtime the controller context attribute stores the MIME resource in an object of type com.sap.tc.webdynpro.services.sal.datatransport.api.IWDResource.

Hope you have properly referred to below article.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4...

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/202a850a-58e0-2910-eeb3-bfc3e0812...

If you wish to later save file on server below article can give you more visibility...

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6080a443-f21b-2e10-2d82-ea1674e51...