Skip to Content
0
Former Member
Mar 11, 2004 at 08:21 PM

Calling a external WAS program from a view

29 Views

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.....