cancel
Showing results for 
Search instead for 
Did you mean: 

Uploading file from Custom button in Scheduled Actions tab

Former Member
0 Kudos

Hello Guys,

I have following requirement:

A custom button should be provided at Scheduled action tab in Service request.When user clicks on this,a

pop-up should open and in this pop-up user should have the provision to browse a file from the desktop and upload it.

I have added a custom button in the scheduled action tab.Now i need:

1. On click of this button,pop-up should appear.where should i right the code for this?

2. After user selects the file from the pop-up,how should i read the data of the file in Web UI/

Please suggest.

Regards

Najam

Accepted Solutions (1)

Accepted Solutions (1)

robert_kunstelj
Active Contributor
0 Kudos

You must call event from button click...

ls_button-on_click = 'name of event'.

Then in event you can call your Z component...

IF gv_popup IS NOT BOUND.

gv_popup = comp_controller->window_manager->create_popup(

iv_interface_view_name = 'Name of your interface view'

iv_usage_name = 'Name of usage you created'

iv_title = 'The title you want for the pop up').

ENDIF.

Of course you will have to create also plugs and navigational links.

For logic of uploding document content take a look at standard compoennt GS_CM which is used for handling documents.

Regards.

Former Member
0 Kudos

Thanks very much Robert.

I wrote the code as mentioned by you.Then,I have created a Custom Usage .Now when am trying to create a Navigation Link

to navigate to my custom component,systems pops up the error:

"Target view 'ZCuZNTESTCOMP.ZNTESTCOMP/MainWindow in navigational link 'ON_SELBUTTON' is not assigned"

Am i missing something?

Please suggest

Regards,

Najam

Answers (0)