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!

Interactive Grid - get cell data via jquery i.e. $('[id="MY_COL"]').each(function() {....

Richard LeggeFeb 1 2017 — edited Feb 2 2017

Hi

Apex 5.1

Im trying to target the grid cells. specifically to loop through all of the values for a column, then carry out smoe function (sum it, copy it etc).

For Interactive reports I use

    $('td[headers="MY_COL"]').each(function() {

       alert $(this).val();

    });

or

    $('[data-col1="MY_COL"]').each(function() {

       alert $(this).val();

    });

However on the interactive grid, Ive set the ID of the column, so am using the following:

    $('[id="MY_COL"]').each(function() {

        tmp += $(this).val();

    });

However, It only brings back the data for the active row (if there is one active). I'm assuming because until a row becomes active, it doesn't have any attributes. So my question is how can I target both active and inactive cells for a column to access the data?

Thanks

Richard

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 2 2017
Added on Feb 1 2017
2 comments
1,224 views