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!

Apex report row delete using jquery class

Irha10May 1 2015 — edited May 1 2015

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

This post has been answered by fac586 on May 1 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 29 2015
Added on May 1 2015
4 comments
1,031 views