I want to Disable five Buttons(Student,Parent,Guardian,Employee,Salary) from MENU Form for during non-business hours i-e 8am-1pm(8-13) I code this in FormBuilder > DatabaseObjects > MyDB(i-e School) >Tables >MENU>Triggers When i Save it it show error ERROR: PDE-UTG007 Trigger contains an error PLS-00201:identifier'ENABLED'must be declared
BEGIN
IF (TO_CHAR(SYSDATE,'DY') IN ('SAT','SUN')) OR (TO_CHAR(SYSDATE,'HH24:MI') NOT BETWEEN '08:00' AND '13:00')
THEN
set_item_property('control.Student', enabled, property_false);
set_item_property('control.Parent', enabled, property_false);
set_item_property('control.Guardian', enabled, property_false);
set_item_property('control.Employee', enabled, property_false);
set_item_property('control.Salary', enabled, property_false);
RAISE_APPLICATION_ERROR(-20500, 'You can access Database only during normal business hours.');
END IF;
end;