cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a external WAS program from a view

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

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

gregorw
Active Contributor
0 Kudos

Hello Armando,

why don't you ask the user kindly to run this program? Why must it be started from the Web page?

You really should care about security. Would you like it that everyone can run programs on your computer?

Regards

Gregor

Former Member
0 Kudos

Hi Gregor.

The reason is 'cause i'm developing a web page for agents and they will not have permission to run nothing.... they will have inhabilited the windows Star Bar and others. The Pc will be like a terminal where they only will use the browser and this will be launched at the windows start. All other Windows applications only will be able whit the administrator pasword but it is other develpment.

Thanks for your help.

gregorw
Active Contributor
0 Kudos

Hi Armando,

can the emulator program ported to java?

Regards

Gregor

Former Member
0 Kudos

Hi Gregor.

The emulator run at MS-DOS mode. When i call it from my view, it runs into a windows (other browser). I suppose that it can ported to java. If you can help me i will apreciate it.