How to disable Ctrl-G in Oracle MSCA or WMS

September 22, 2016 - 1 minute read

How to disable Ctrl-G in Oracle MSCA or WMS

Standard Oracle uses Ctrl-G to generate new LPN, Lot or Serial number. However, some business may have requirement to turn off this functionality as they want users to use existing predefined value.

Here is how we can use Express Server to achieve this functionality.
In Express Server, there is page level property called Input Processor which allows developers to put a script to examine input from user and act accordingly. For example, when user presses Ctrl-G, variable $ACTION_STRING will have value of “INV_GENERATE” and $ACTION_CODE -1. When user presses Ctrl-L, $ACTION_STRING will have value of “MWA_LOVSUBMIT” and $ACTION_CODE 7.

Furthermore, Input Processor allows developer to stop further processing of input and return a message to the user.

Here is an example of a script that we can put on Input Processor of PO Receipt to prevent user from using Ctrl-G to generate new LPN.

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;
 }
}

untitled

Here is what the screen looks like when user tries to press Ctrl-G.

2

Since this is an Express Server personalization, this functionality will work for all MWA clients including Telnet.

0 Comments
Join the conversation

Your email address will not be published. Required fields are marked *

Leave a Reply