Frequently Asked Question

How to disable Ctrl-G for LPN or Lot field
Last Updated 5 years ago

Input Processor captures control key event before Special Key Pressed event is triggered. So we can use the following script in Input Processor property to stop Ctrl-G. The script needs to match by field name, so please change INV.LPN accordingly.

script:
if ("INV.LPN".equals(page.getCurrentFieldBean().getName())) {
  if ("INV_GENERATE".equals($ACTION_STRING) && $ACTION_CODE == -1) {
    $STOP_PROCESSING = "Y";
    session.setStatusMessage("Ctrl-G is disabled.");
    return;
  }
}

Please Wait!

Please wait... it will take a second!