we have a dashboard screen, in that dashboard screen we are showing the count of user entity, whenever a new user created, we are increasing the count on the dashboard, we required a functionality like whenever a new user record insert into entity, along with increasing count on the dashboard, I want to give some system sounds or audio (like notification sound)
suggest me how to do that.
Demo link: https://personal-kerbw25z.outsystemscloud.com/sample/API
You can refer the screenshot to add resource
Thanks
Deepak M
Hi Priya Naveen,
Call a Js where you want to raise a sound and paste the below mentioned query inside that.
const successSound = new Audio('paste here the audio path url');
successSound.play();
successSound.volume = 0.15;
could you please provide any working sample audio path url
To achieve this functionality in OutSystems, you can use the following approach:
Create an Audio Element:
Trigger the Audio Playback:
Example :
After increasing the count on the dashboard (assuming you're doing this in a server action), add a JavaScript node to the server action flow.
In the JavaScript node, use the following code to trigger the audio playback:
javascriptCopy code$parameters.AudioId.play();
Ensure that the JavaScript node has an input parameter named AudioId of type AudioSource that references the Audio widget on your screen.