PAI event how to get the fieldname which triggered the event
Page 1 of 1
PAI event how to get the fieldname which triggered the event
Normally writing:
Field tab-field1 Module check1.
Field tab-field2 Module check2.
Now I wanna use one method.
Field tab-field1 Module check.
Field tab-field2 Module check.
Module check.
"get the fieldname which triggered the event
case fieldname.
when 'FIELD1'.
message 'input field1' type 'E'.
when 'FIELD2'.
message 'input field2' type 'E'.
endcase.
Endmodule.
Field tab-field1 Module check1.
Field tab-field2 Module check2.
Now I wanna use one method.
Field tab-field1 Module check.
Field tab-field2 Module check.
Module check.
"get the fieldname which triggered the event
case fieldname.
when 'FIELD1'.
message 'input field1' type 'E'.
when 'FIELD2'.
message 'input field2' type 'E'.
endcase.
Endmodule.
yanshengli- Posts : 1
Join date : 2011-11-18
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum