How to ENABLE/DISABLE an item dynamically during Form6i run-time [message #548669] |
Sat, 24 March 2012 01:47 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
|
Hello Experts!
Hope u all doing fine.
I am here with another problem.
I have a master-detail form showing multiple records (tabular) in data-block. Now my problem is, based on certain column's value of a particular item in a particular row on the data-block to ENABLE/DISABLE during run-time .
For example, in a detail-block of 5 rows, if 3rd row's 'detail-block.item1' is equal to lets say, "X", then 'detail-block.item2' of that particular row ONLY must be 'disabled'. otherwise, it must 'enable' the 'detail-block.item2' of that particular item in that particular row on the data-block.
Even when, I query the form, it must enable/disable that particular item of that particular row from the data-block based on item1's value.
please some body help me to solve this.
thank you very much in advance to one and all.
|
|
|
|
|
|
Re: How to ENABLE/DISABLE an item dynamically during Form6i run-time [message #548679 is a reply to message #548676] |
Sat, 24 March 2012 07:21 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
You can't set the enabled property of any item on a per row basis.
2 Choices:
1) Have code in the when-button-pressed that raises an error if the button should be disabled.
2) Make the button part of a seperate data block and have it appear on the canvas once, rather than once per row. Then you can enable/disable it using when-new-record-instance and when-validate-item.
|
|
|
|
|
|