Hi,
Using Apex 4.2 and oracle (10 and 11g)
On my apex page I have a report and button (DELETE) -> id = BtnD , so user can select and delete the desire row(s).
On page load DELETE button is disabled. so when user checked the click the checkbox then DELETE button will be enabled otherwise disabled.
SELECT APEX_ITEM.CHECKBOX(1,empno, 'class="DelRow"') "Select", ename, job
FROM emp
Create a new dynamic action, eg. Delete Row(s)
Event: Click
Selection Type: jQuery Selector
jQuery Selector: .DelRow (this is the class i added to the checkbox in the sql)
Condition: JavaScript Expression
Value: $(this.triggeringElement).prop('checked')
True action : Enable -> jQuery Selector: .BtnD -> effected -> jQuery -> .BtnD
False action : Disable -> jQuery Selector: .BtnD -> effected -> jQuery -> .BtnD
it does work fine, however if there are more than one row and selected more than one but if user
un ticked one of the row then Button is also Disabled. I want , it should not be disabled until all the rows are un ticked
otherwise remain enable?
any help please?
Kind regards,
RI