cancel
Showing results for 
Search instead for 
Did you mean: 

Reg. FileUpload control and Check-boxes

Former Member
0 Kudos

Hi every one,

I want to know how to use FileUpload Control (I am using Web Dynpro 2.0.7).

I need to upload a file whose contents should be inserted into an SAP database. When the user clicks the UPLOAD button the FilePath should be sent as a String Parameter to an RFC where the insertion part is done. The RFC takes the filepath, reads the file and inserts the relevant columns into an SAP database.

Is it possible? Do you have a document regarding the same?

I have already seen the Help Document.

Another thing i want to know is, Can we do front end validations in web dynpro?

For ex: There are 100 Rows each having a checkbox. Can i count the no. of checkboxes that are checked?

Kindly help me in this regard urgently.

Awaiting your reply.

Regards,

Sai Krishna.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sai

You can get the details of the path as follows

Ex: File file = new File(<give the value of the text box here>)

String parentPath = file.getParent();

File parentDir = file.getParentFile();

Get the path and insert the value in the input parameter of the RFC.

Just try out this.

Regarding getting count of the check boxes checked, loop thru all the rows from 0 to n and check for each row check box value.

Regards

NagaKishore V