Home » Developer & Programmer » Forms » disable text item based on value in previous text item (Forms 6i, Oracle Database 11g Enterprise Edition Release 11.1.0.7.0)
disable text item based on value in previous text item [message #640451] |
Tue, 28 July 2015 13:47  |
rkhatiwala
Messages: 178 Registered: April 2007
|
Senior Member |
|
|
Hi,
In my form i have user_name, region, case_type.
User can have either region or case-type, so i want to disable case-type if region is populated, and if region is skipped and user goes on to populate case-type, it should make the previou item - region - disabled/grey.
I tried to put the following code in couple of triggers, but it is not disabling, and sometimes getting FRM-40105 error.
if :rav_regions.region is not null then
SET_ITEM_PROPERTY(':rav_regions.case_type',ENABLED,PROPERTY_FALSE);
SET_ITEM_PROPERTY(':rav_regions.case_type',VISUAL_ATTRIBUTE,'VA_NAME');
end if ;
This should be the case whenever a new record is created.
Thanks,
RK
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sat May 03 13:00:20 CDT 2025
|