Beas Scripting : intercept keyboard shortcut F3 in time receipts
Dears,
A customer does not want its operators to be able to close the operations of a workorder when they declare times on it.
The Beas configuration wizard setting "Production - FDC - Allow closing of operation sequence?" has no impact on the terminal "time receipt from work order" form : button F3 "completion confirmation" is sill displayed and can be used, wether the option is checked or not.
We tried to create a beas script to block the use of the button F3 : the mouse click on the button is blocked indeed, but the users can still use the keyboard shortcut F3, which we have not been able to intercept via windowevents in scripting yet.
How can this be done?
In following screenshots we can see that both F3 and F2 (which have to remain allowed) button triggers the same event "savetimereceipt": so we cannot use it.
Thanks in advance for your help.
Best regards
-
Hi,
this is calling the window event "savetimereceipt" and here you can cancel the process
windowevent savetimereceipt
if <dw_1.item.abgkz.value> = J then
return -1
end if
end event -
Thanks Martin !
I did not think to use the variable agbkz, indeed.
Best regards
Please sign in to leave a comment.
Comments
2 comments