on 04-10-2006 9:24 AM
Guys,
Brief Intro : I have a form with some input fields. Upon submission of the form all the necessary information is submitted ro R/3 system and a mail is send to lets say administrators. I have Java Mail program for sending emails.
My requirement : I want the users to give the FileUpload option in the form so that they can select the file and that file should be attached to email whcih I am sending upon form submission.
Questions:
1) How to check the path of the file where it gets uploaded.
2) Does it get uploaded on the Server where I deploy my application.
3) Any Solution/suggestion on how to implement the requirement stated above.
Regards,
<b>Chintan Virani.</b>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chintan...
File Uplaod UI Element is just to get the file path of the file from the client or presentation server i.e. our pc. Rest code to store the data is done in action of the upload button (not the browse button). So no file is formed automatically.
Unless you write the code to read the file from the path selected, you cannot get the data bytes and unless you mention the path no file is made in the server.
Better would be that you keep a file template in the mimes folder and at runtime you write to this file.
The path of the file in the mimes folder is
temp
webdynpro
web
local
<ProjectName>
Components
<Component Package>
<File Name>
This file can be attached to your mail as an attachement.
Further reference...
Regards,
Mahesh K.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chintan,
Go to the property of context attribute.
click on the selection for the property "type" in the right side.
A pop for type selection will appear.
Click on simple type,then expand Dictionaries->Local Dictionary->com.sap.ide.webdynpro.uielementdefinitions
Find resourse in the tree structure and then select it.
Regards,
Rajeev
Hi,
Upload UI element is for selecting the file to be uploaded and the data gets stored in the context attribute( normaly it will be binary type ) which is binded to the source of the UI elment.
Using this data if you create any file, it will get stored in the file path given you in the server.
Regards,
Mahesh K.
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 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.