# Screen doesn't refresh after path execution

**URL:** <https://techcommunity.softwareag.com/t/screen-doesnt-refresh-after-path-execution/92098>\
**Category:** Forum\
**Tags:** Mainframe-Integration, ApplinX\
**Created:** [November 13, 2009, 6:11pm UTC](https://techcommunity.softwareag.com/t/screen-doesnt-refresh-after-path-execution/92098 "2009-11-13T18:11:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafael2](https://avatars.discourse-cdn.com/v4/letter/r/7feea3/32.png) [@Rafael2](https://techcommunity.softwareag.com/u/Rafael2)\
**Post date:** [November 13, 2009, 6:11pm UTC](https://techcommunity.softwareag.com/t/screen-doesnt-refresh-after-path-execution/92098/1 "2009-11-13T18:11:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Tanya](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@Tanya](https://techcommunity.softwareag.com/u/Tanya)\
**Post date:** [November 16, 2009, 2:18pm UTC](https://techcommunity.softwareag.com/t/screen-doesnt-refresh-after-path-execution/92098/2 "2009-11-16T14:18:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Rafael2](https://avatars.discourse-cdn.com/v4/letter/r/7feea3/32.png) [@Rafael2](https://techcommunity.softwareag.com/u/Rafael2)\
**Post date:** [November 16, 2009, 5:32pm UTC](https://techcommunity.softwareag.com/t/screen-doesnt-refresh-after-path-execution/92098/3 "2009-11-16T17:32:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Tanya](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@Tanya](https://techcommunity.softwareag.com/u/Tanya)\
**Post date:** [November 17, 2009, 1:51pm UTC](https://techcommunity.softwareag.com/t/screen-doesnt-refresh-after-path-execution/92098/4 "2009-11-17T13:51:18Z")

</div>

Rafael, glad it works:)

Tanya

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:57pm UTC](https://techcommunity.softwareag.com/t/screen-doesnt-refresh-after-path-execution/92098/5 "2021-04-02T14:57:45Z")

</div>


