webMethods

webMethods

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
Expand all | Collapse all

Screen doesn't refresh after path execution

  • 1.  Screen doesn't refresh after path execution

    Posted Fri November 13, 2009 01:11 PM

    Hello

    During usual web navigation I need to execute a path to advance to a special screen. I have defined it at the repository, and call it from java with the following code:

    GXPathRequest pathRequest = new GXPathRequest(); pathRequest.setPathName(“PATH_NAME”); pathRequest.addInputField(“FIELD_NAME”, “FIELD_VALUE”);
    gxContext.getGXSession().executePath(pathRequest);
    gxContext.gx_handleHostResponse();

    When I look the session with applinx I can see that the path has been executed correctly. However, in firefox, it looks as if nothing had happened.

    I suppose that the code is ok, but I have written it in the wrong place and it is having problems with applinx’s lifecycle. I have tried to write it at many methods:onLoad, onUnload, onNewTextField, … but none of them works. Do you know how can I do it?

    Thanks in advance


    #webMethods
    #Mainframe-Integration
    #ApplinX


  • 2.  RE: Screen doesn't refresh after path execution

    Posted Mon November 16, 2009 09:19 AM

    Rafael,
    afraid can’t really tell you what is wrong without knowing what exactly were you trying to do. What is your path procedure supposed to be doing and when (on page load? on page unload? on transformation?) and on which ApplinX version.

    Tanya


    #Mainframe-Integration
    #webMethods
    #ApplinX


  • 3.  RE: Screen doesn't refresh after path execution

    Posted Mon November 16, 2009 12:33 PM

    Hello!

    I’ve just managed to do it.

    What I wanted to do was executing a path that, in case of entering at a banned screen, redirected the user to another screen.

    The key point was executing the path before filling the form, so I finally overrided the gx_fillForm method in this way:

    @Override
    public void gx_fillForm() throws GXGeneralException {
    if(screenIsBanned()){
    GXPathRequest pathRequest = new GXPathRequest();
    pathRequest.setPathName(“PATH_NAME”);
    pathRequest.addInputField(“FIELD_NAME”, “FIELD_VALUE”);
    getGXSession().executePath(pathRequest);

          super.gx_fillForm();				
    gx_handleHostResponse();
    }else{
    super.gx_fillForm();
    }   
    

    }

    Thanks


    #ApplinX
    #Mainframe-Integration
    #webMethods


  • 4.  RE: Screen doesn't refresh after path execution

    Posted Tue November 17, 2009 08:51 AM

    Rafael, glad it works:)

    Tanya


    #webMethods
    #ApplinX
    #Mainframe-Integration