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 Enable/Disable a HTML Expression Button within an Interactive Grid Report based on another va

Tony FatourosSep 29 2019 — edited Oct 1 2019

Hi,

Env: Oracle APEX 5.1.2 / Oracle 11g R2

Hoping someone can assist. I have a top region where the user select from a select list and based on the selection returns an IG report of records for that selection.

Within the IG, I have several report columns but I also have a column that is a HTML Expression type (button), i.e.:

<button id="edit-btn" type="button" class="t-Button t-Button--icon t-Button--iconLeft"><span aria-hidden="true" class="t-Icon t-Icon--left fa fa-edit"></span>Edit</button>

Based on another column value within this same IG report, column name "Key", if this has a value within it, I would like to enable the HTML Expression (button column above) for that row where the "Key" value is not null otherwise I would like the button disabled for that row.

I obviously want this rule to apply to each row of the IG report based on whether the "Key" value is null or not null.

I would actually like this triggered for all rows, based on the top region select list value.

Unsure if this can be done via a Dynamic Action or if javascript coding is required.

Any help would be great.

Thanks.

Tony.

Comments
Post Details
Added on Sep 29 2019
1 comment
1,268 views