cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a external WAS program from a view

Former Member
0 Kudos
206

Hi all.

I'm trying to call an external WAS program from a view. The external program is a emulator that is installed on c:emulator (frontend). It's composed by more than one files and is necesary to run the exe file inside the directory.

I has been trying with two possible solutions:

1)

I implemented a JavaScript. When the user press a link the JavaScript create an active control:

var ws = new ActiveXObject("WScript.Shell");
ws.Exec("c:/emulator/emulator.exe");


with this JavaScript is called the emulator.exe but it dont't work !!!! the application is launched but don't finish with the charge of data and don't respond, its like i get the emulator.exe and copy it to the root c: !!! it don´t work because need the other files inside the directory c:emulator. I suppose that this file (emulator.exe) is upload to the server like a MIME at runtime and executed (it never gonna to run because is necesary to upload all the files--- i suppose it).

2)

When the link is pressed the controller's view catch the event

DO_HANDLE_EVENT

and i use the class

cl_gui_frontend_services->execute

for execute the application but it raise an error.

i knows that sound strange imaginate one internet page executing programs in your pc but i need to do it.

If some body can help me.....

View Entire Topic
daniel_jakobs
Advisor
Advisor
0 Kudos

Or you let the user to download the doc and open it in an editor of his choice. thats we way -I guess- most websites do.