Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to show/hide a form region when two interactive grids does not contains an ID ?

Hi,

Under Oracle APEX 24.2.10, I have P.39 of application 108 two interactive grids “Bénévoles” and “Référents”. The user select in a select list a user and the select list return the ID of the user contained in a table “AD_BENEVOLE”.

This SQL command returns all the ID of the users contained in the rwo interactive grids :

select a.id_benevole, b.ID_referent
 from ad_crise_benevole a, ad_crise_referent b
where a.id_crise = :P39_ID and b.ID_CRISE=:P39_ID

I have on the same page a form “Envoi de SMS”. I would like to show dynamically this region (probably using Javascript in a DA) if the result of the SQL above command contains the ID of ID_BENEVOLE or ID_REFERENT of the two interactive grids. I would like this form “Envoi de SMS” to be hidden if the result of the SQL request does not return anything ("Data not found") if the two interactive grids does not contain ID_BENEVOLE or ID_REFERENT. I would like also that this region “Envoi de SMS” to be refreshed if lines are added or deleted from the two interactive grids on “Event : Save (Interactive Grid)”.

Best regards.

Comments
Post Details
Added 5 hours ago
0 comments
18 views