VL-WEB (V15) and a sound (Beep) when error

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
kno_dk
Posts: 219
Joined: Tue Feb 23, 2016 12:00 am

VL-WEB (V15) and a sound (Beep) when error

Post by kno_dk »

Hi.

I would like to have a Beep Sound in my VL-WEB App if there is an error.

What is the best way to do that? Any examples?

/klaus
User avatar
lawingo
Posts: 78
Joined: Fri Dec 04, 2015 6:41 am

Re: VL-WEB (V15) and a sound (Beep) when error

Post by lawingo »

Very simple.

1. place the Sound in your VL View

Define_Com Class(#PRIM_SOND) Name(#Sound1) Displayposition(3) Left(32) Parent(#COM_OWNER) Tabposition(3) Top(368) Visible(False)

2. Play the sound

#Sound1.FileName := 'error.wav'
#Sound1.Play

3. Make sure the Sounds are saved in the Lansa Production IFS Directory:

x_lansa\x_YourPartition\web\vl
Post Reply