Bug #8807
A trigger of ANYWHERE type does not shadow existing trigger for the same event
Status:
Review
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:
100%
billable:
No
vendor_id:
GCD
case_num:
version_reported:
version_resolved:
reviewer:
production:
No
env_name:
topics:
History
#1 Updated by Vladimir Tsichevski about 2 years ago
- Subject changed from Trigger does not shadow existing trigger as expected to A trigger of ANYWHERE type does not shadow existing trigger for the same event
Code example:
def var ch as char.
def var ch2 as char.
form ch with frame f1 side-labels.
enable all with frame f1.
procedure proc0.
on "a" anywhere do:
message "a inner".
end.
update ch2 with frame f2 side-labels.
end.
on "b" of ch in frame f1 do:
run proc0.
end.
on "a" anywhere do:
message "a outer".
end.
wait-for go of frame f1.
Scenario:
- press 'a' - the 'outer' trigger is executed. OK.
- press 'b' - a new frame appears, 'b outer ch start' is shown. OK.
- press 'a' - the 'a inner' trigger should be executed, but the 'a outer' trigger is executed instead.
So, the anywhere trigger, defined in the internal procedure proc0, does not shadow the trigger, defined for the same event in the global procedure, as expected.
#3 Updated by Vladimir Tsichevski about 2 years ago
This issue was first reported in #8606-44.
#4 Updated by Vladimir Tsichevski about 2 years ago
- Status changed from New to WIP
The 8806b rev. 15339 fixes exactly this issue.
#5 Updated by Vladimir Tsichevski about 2 years ago
- Status changed from WIP to Review
- % Done changed from 0 to 100