HI. I have two Audio Controls - one plays a success noise, one a buzzer - they play depending on whether a record is found in a data table. For some reason they will only play again once the other one has played. So for example if it doesn't find a record it plays the buzz... but then if once again it doesn't find a record it wont play the buzz until a record has been found and it plays the beep. I have in my start code this If(
!IsBlank(
LookUp(
Table1_1,
Column1 = varScan
).Column1
),
true,
false
)
Can anyone help?
Solved! Go to Solution.
Hi @Bottlefury ,
Make the Start a Variable (I will use varPlay here) - you need to trigger this from something - probably directly after you set varScan
If(
!IsBlank(
LookUp(
Table1_1,
Column1 = varScan
).Column1
),
UpdateContext({varPlay: false});
UpdateContext({varPlay: true})
)
As you can see, you need to reset the Variable for the Media Player to start.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
Hi @Bottlefury ,
Make the Start a Variable (I will use varPlay here) - you need to trigger this from something - probably directly after you set varScan
If(
!IsBlank(
LookUp(
Table1_1,
Column1 = varScan
).Column1
),
UpdateContext({varPlay: false});
UpdateContext({varPlay: true})
)
As you can see, you need to reset the Variable for the Media Player to start.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
thanks for the tips...i've tried but it doesn't seem to play anything now
sorry ignore me I was being an idiot. Your solution worked perfectly!
User | Count |
---|---|
255 | |
126 | |
104 | |
49 | |
49 |