IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Question on 9.7 vs 9.9 for Java Code

    Posted Fri December 04, 2015 05:08 PM

    Our legacy Applications all have code similar to the following to negate accidental PK Key processing:

    // used for updating the send key request before sending
    public void gx_preSendKey(GXIHostPageContext gx_context,GXPreSendKeyEvent event)throws GXGeneralException{

    	  if (event.getSendKeysRequest().getKeys().equals("[enter]")){
    event.getSendKeysRequest().setKeys("[]");
    gx_context.gx_fillForm();
    }
    
    if (event.getSendKeysRequest().getKeys().equals("[pf7]")){
    event.getSendKeysRequest().setKeys("[]");
    gx_context.gx_fillForm();
    }
    
    if (event.getSendKeysRequest().getKeys().equals("[pf8]")){
    event.getSendKeysRequest().setKeys("[]");
    gx_context.gx_fillForm();
    }
    
    if (event.getSendKeysRequest().getKeys().equals("[pf10]")){
    event.getSendKeysRequest().setKeys("[]");
    gx_context.gx_fillForm();
    }
    
    if (event.getSendKeysRequest().getKeys().equals("[pf11]")){
    event.getSendKeysRequest().setKeys("[]");
    gx_context.gx_fillForm();
    }
    
    }
    

    It worked in 9.7, but now in 9.9, when you press the Enter key, it locks the screen and you cannot do anything. It seems to freeze in place. When I remove the Java code, then it works normally. Any ideas?


    #webMethods
    #ApplinX
    #Mainframe-Integration


  • 2.  RE: Question on 9.7 vs 9.9 for Java Code

    Posted Sun December 06, 2015 07:33 AM

    Hi Joe,

    I don’t know exactly when and what changed but if you’ll replace:
    setKeys(“”);
    with:
    setKeys(“”);

    It should solve your problem :slight_smile:

    Regards,
    Gadi


    #Mainframe-Integration
    #ApplinX
    #webMethods


  • 3.  RE: Question on 9.7 vs 9.9 for Java Code

    Posted Thu December 10, 2015 08:27 AM

    Thanks, Gadi. It works fine. Unfortunately we must now modify thousands of java files. But, at least we have a fix.


    #webMethods
    #ApplinX
    #Mainframe-Integration