Beep on Error

shortdog

Active Member
I have a client that is wanting to have a beep or sound play when an error condition occurs.

We are currently on 9.2.0.5.

I searched previous postings, but all I have found are many years old. I have noticed that in the lpBhvrCom there is a UserPref which contains bErrorBeep. I have found no where this is used and believe it is obsolete. I can't seem to find anywhere in user preferences to set this value, and manually setting it via a C BSFN has no effect. I have found old documentation that says you should be able to turn on a error beep from the error message dialog, but I can't find it and believe it is old functionality that is not longer supported.

I have created a C executable that will cause a beep, and tried to use the Run Executable system function, but IExplorer wants to always ask if I want to run or save.

The business scenario is the user is scanning many items which fills a grid, but if one of the items that is scanned is not on the order, the client wants to give some indication that would cause the user to take notice of the screen rather than continue scanning. It seems many clients might have similar type of requirements.
 
You cannot do this through lpBhvrCom (unless E1 system code implements it somehow). The options in lpBhvrCom are meant for fat clients.

Calling an executable from a web app is very bad idea (for security reasons).

Your best option is to implement this in javascript. You can embed javascripts in a text control and add a segment to it to play a WAV file that has your beep. You can also you a data URI in your javascript to do this.
 
Internet Of Things?

That has the ability to chat to external transducers/systems. Maybe you could look into that and how it talks to the outside world?

I have created a C executable that will cause a beep, and tried to use the Run Executable system function, but IExplorer wants to always ask if I want to run or save.

How are you calling the C.exe? and can't you check if your call has any switches after the call command to make it run rather than it asking.

Maybe IE is not knowing what to do with the .exe mime type?
 
Last edited:
You cannot do this through lpBhvrCom (unless E1 system code implements it somehow). The options in lpBhvrCom are meant for fat clients.

Calling an executable from a web app is very bad idea (for security reasons).

Your best option is to implement this in javascript. You can embed javascripts in a text control and add a segment to it to play a WAV file that has your beep. You can also you a data URI in your javascript to do this.

So I got a text block control to play a sound when a form loads. Is there a way to play the sound when something on the form happens. Like when a button is pressed or something. Basically if this script is not set to run on the load of the HTML page, how would you trigger it from ER or from a control?

Thanks.
 
Internet Of Things?

That has the ability to chat to external transducers/systems. Maybe you could look into that and how it talks to the outside world?

I have created a C executable that will cause a beep, and tried to use the Run Executable system function, but IExplorer wants to always ask if I want to run or save.

How are you calling the C.exe? and can't you check if your call has any switches after the call command to make it run rather than it asking.

Maybe IE is not knowing what to do with the .exe mime type?

I ended up going the Javascript route but would still like to figure out how to run an executable without the run/save dialog.

To answer your question, I was just using the System function for run executable. In my testing on DEMO, I put the executable in the web server root directory (obviously I would have placed it somewhere else eventually.) The EXE is served up, but iExplorer won't just run it. Want to ask permission to run or save it. Just like if you had downloaded an exe from any website.
 
So I got a text block control to play a sound when a form loads. Is there a way to play the sound when something on the form happens. Like when a button is pressed or something. Basically if this script is not set to run on the load of the HTML page, how would you trigger it from ER or from a control?

Thanks.


In you Javascript, you can bind the button's (find it's ID or name by inspecting the element on the browser) click event to a function. In that function, play the sound.
 
Back
Top