cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to open this file thru URL.

Former Member
0 Kudos

Hi friends,

I have a powerpoing file in 'C' drive name of Materialdetails.

Is it possible to open this file thru URL.

Moosa

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Here is a sample code:

Layout code is:

<htmlb:fileUpload id   = "excel_uploader"
              size     = "20"
             accept = "true"/>
<htmlb:button       id      = "submit"
                           text    = "Upload"
                           on Click = "HandleUpload"      />

onInPutProcessing code:

DATA: event TYPE REF TO cl_htmlb_event.
 event = cl_htmlb_manager=>get_event( runtime->server->request ).

  IF event->id = 'submit' AND event->event_type = 'click'.

 DATA: data TYPE REF TO cl_htmlb_fileupload.
    data ?= cl_htmlb_manager=>get_data( request      =
runtime->server->request
                                        name         = 'fileUpload'
                                        id           = 'excel_uploader'
                                      ).


    IF data IS NOT INITIAL.
      name         = data->file_name.
      content      = data->file_content.
      length       = data->file_length.
      content_type = data->file_content_type.
    ENDIF.
endif.

Hope this solves the issue, Let me know if any queries.

Regards,

Rajani

Former Member
0 Kudos

ist showing bsp error

Former Member
0 Kudos

Hi,

What is the error, May I know that you want to open the file or upload the file.

Regards,

Rajani

Former Member
0 Kudos

HI ,

I want to open the powerpooint file 'C:
MATERIALDATA.PPT' .

In bsp its showing white color.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Use <htmlb:fileupload> and browse the required file

Former Member
0 Kudos

Hi sudha,

thanks .

Can u explain brief?

moosa

Former Member
0 Kudos

Hi,

<htmlb:fileUpload id = "upload"

size = "20"

onUpload = "HandleUpload" />

Then on input processing handle this event.

DATA:

w_event TYPE REF TO cl_htmlb_event,

w_eventid TYPE string,

w_upload TYPE REF TO cl_htmlb_fileupload,

event = cl_htmlb_manager=>get_event_ex( request ).

IF event IS NOT INITIAL AND event->event_name = htmlb_events=>fileupload.

w_upload ?= cl_htmlb_manager=>get_data(

request = runtime->server->request

name = 'fileUpload'

id = 'upload'

).

Former Member
0 Kudos

hI SUDHA,

What my requirment is ,

I have a button .

when i click this its should open c:/materialdetails.ppt