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 to go through all table rows in specific table column

Jiri N.Aug 23 2012 — edited Aug 23 2012
Hello,

I am in situation when I need to disable some tabular form cell, when value in other tabular form cell equals to some value.

e.g. I need to disable value in column2, when value in same row in column1 = 1.

I have created the dynamic action (DA) which is fired after the refresh of page region.

And now I am wondering how to construct the dynamic action code. I think that jQuery is the correct approach, but I have not found useful example yet. I think I need to loop through the table, check value in needed column and disable corespondent value in other column if needed.

I have created an example on apex.oracle.com.

[www.apex.oracle.com|http://www.apex.oracle.com]
username/passwd
kurin@centrum.cz/kurintest

workspace
kurintest

application:
Application 54076 - jQUery selector


In this appl. I would like to disable second column in the tabular form table (REGION_NAME) when value in first column (REGION_ID_DISPLAY) = 1 or 3.

I would like to user table headers as identifiers to avoid problems when column will be moved to other position.

Could anyone help me with this (maybe very easy) task?

Thanks in advance!

-Jiri

Edited by: Jiri N. on Aug 23, 2012 1:31 AM
This post has been answered by evrm on Aug 23 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 20 2012
Added on Aug 23 2012
4 comments
1,714 views