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!

JQuery selector for dynamic link

user5108636Feb 21 2018 — edited Feb 21 2018

Hi All,

    I have defined a dynamic action on column link 'Update'. The event is click, the selector type is JQuery Selector.

What should be the JQuery Selector in this case (see code below). I want to dynamically determine which update link has been clicked by user.

<div class="t-Report-wrap">

   <table class="t-Report-pagination" role="presentation"><tr><td></td></tr></table>

   <div class="t-Report-tableWrap">

   <table class="t-Report-report" summary="List of products.">

<thead><tr><th class="t-Report-colHead"  align="center"  id="CODE" >Code</th><th class="t-Report-colHead"  align="center"  id="NAME" >Name</th><th class="t-Report-colHead"  align="center"  id="Update" >Update Status</th></tr></thead>

<tbody>

<tr><td class="t-Report-cell"  headers="CODE">15</td><td class="t-Report-cell"  headers="NAME">Cotton Jumper</td><td class="t-Report-cell"  headers="Update"><a href="javascript&#x3A;void&#x28;0&#x29;&#x3B;" data-id="15" class="update t-Button t-Button--icon t-Button--iconRight t-Button--stretch">Update</a></td></tr>

<tr><td class="t-Report-cell"  headers="CODE">16</td><td class="t-Report-cell"  headers="NAME">Knitted Quilt Cover</td><td class="t-Report-cell"  headers="Update"><a href="javascript&#x3A;void&#x28;0&#x29;&#x3B;" data-id="16" class="update t-Button t-Button--icon t-Button--iconRight t-Button--stretch">Update</a></td></tr>

<tr><td class="t-Report-cell"  headers="CODE">18</td><td class="t-Report-cell"  headers="NAME">Magnetic Pillow</td><td class="t-Report-cell"  headers="Update"><a href="javascript&#x3A;void&#x28;0&#x29;&#x3B;" data-id="18" class="update t-Button t-Button--icon t-Button--iconRight t-Button--stretch">Update</a></td></tr>

<tr><td class="t-Report-cell"  headers="CODE">50</td><td class="t-Report-cell"  headers="NAME">Jet Suit</td><td class="t-Report-cell"  headers="Update"><a href="javascript&#x3A;void&#x28;0&#x29;&#x3B;" data-id="50" class="update t-Button t-Button--icon t-Button--iconRight t-Button--stretch">Update</a></td></tr>

   </tbody>

   </table>

   </div>

   <div class="t-Report-links"></div>

   <table class="t-Report-pagination t-Report-pagination--bottom" role="presentation"></table>

  </div>

</div>

Based on that I need to show a confirmation box in the dynamic action.

Thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 21 2018
Added on Feb 21 2018
1 comment
415 views