on 03-12-2009 6:07 AM
Hi
I am a pure java developer.
My manager has asked me to make an application (simple RFC call) in webdynpro java.
I followed some documents and it was easy to finish task...
But I was thinking to make an application now which can read contents from a CSV file and insert that in value attribute nodes.
I am having an action button.
A function which will be invoked from that button.
Now how can i do it.....means the best approach.
shall i create a separate class somewhere in my application and make an object of that class in onAction function of my button !!!
Or do i have to write entire code in onAction function.
Does concept of separate classes, request objects and session exist in webdynpro...!!
Because wen i did that RFC call everything was self created....!!
Please comment.
Thanks.
Hi
Regarding your question :Does concept of separate classes, request objects and session exist in webdynpro.
For separate class :External Library DC is there read [this|https://www.sdn.sap.com/irj/scn/wiki?path=/display/home/usingExternalLibraryinMobileWebDynpro+Offline] and [this|] for further input.
Request Object and session depends on uses and its life cycle is maintainded by WebDynpro application itself.
Have a look on this [document|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502f70a8-33a4-2b10-3dbe-bdcb5e25c6da]also.
Best Regards
Satish Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use the upload UI button to upload your CSV file
Read the contents of this file and create elements under value node for each row.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There has to be some coding which needs to be done..
for reading file contents and then inserting them in node elements.
Where shall i do this coding.
In simple java we use to import a FileFactory class, which contains required utility methods from where we extract file contents.
File was accessed using request object.
Is this all available in web dynpro ...!!
Hi
Yes it is available and in more simplified way
1. Use file upload element. use this [thread|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71] for help
2. use [this|; and [this|; for further help.
(here examples are for some excel fileupload form system modify it according to your need)
Best Regards
Satish Kumar
User | Count |
---|---|
87 | |
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.