on 03-06-2009 3:38 PM
Hi,
I need to upload a file on my mobile application (webdynpro mobile offline 7.1). When I ask if the resource == null, the answer is alwasy true. If I make the same exercise with a online scenario it works.
Detail:
I create a node of tipe resource
Bind to a fileUpload Element
Create a button for an action
Action:
if(wdContext.currentContextElement().getRes() != null)
{
IWDResource resource = wdContext.currentContextElement().getRes();
//code needed for some other operations
wdContext.currentContextElement().setSize(this.getFileSize(resource));
String url = wdContext.currentContextElement().getRes().getUrl(1);
wdContext.currentContextElement().setUrl(url);
}
else
wdComponentAPI.getMessageManager().reportWarning("Upload failed");
The app always showme the message that the upload was failed.
Regards;
David Faustini
Hi,
You can check this link.
https://www.sdn.sap.com/irj/scn/wiki?path=/display/mobile/uploadingAttachments-NetweaverMobile7.1
Regards,
Narayani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
check in this link..that might help :
http://help.sap.com/saphelp_nwmobile71/helpdata/EN/46/b04671aed64f9de10000000a155369/content.htm
Regards,
Lakshmi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.