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!

Disable Detail interactive grid buttons depending on Master interactive grid row

BillUKMar 4 2019 — edited Mar 7 2019

Hi,

I'm using APEX v18.2 and I have a Master-Detail page containing two interactive grids. I want the rows in my Detail interactive grid to be non-editable and not allow any actions to be performed against them when the value of a column in the selected Master interactive grid is a specific value.

I have got the rows to be not editable in the Detail interactive grid by updating my underlying SQL query and making use of the Allowed Row Operations Column attribute. However, the interactive grid 'Add', 'Delete' and 'Save' buttons remain clickable and I would like these to be disabled.

I can't think of a way to achieve this. My thinking is that I need to store the column value from the selected Master interactive grid row into a page item using a dynamic action, which is easy enough to do. Following on from this, I need to possibly make use of JavaScript in order to disable the interactive grid buttons depending on what the page item value is; and this would need to be refreshed whenever the user clicks on a row in the Master interactive grid.

I have tried to look in previous discussions, for example this one here https://community.oracle.com/thread/4177892 , but it doesn't seem to fit my problem.

I welcome ideas from other developers who might have faced a similar challenge before.

Regards

This post has been answered by BillUK on Mar 7 2019
Jump to Answer
Comments
Post Details
Added on Mar 4 2019
3 comments
2,922 views