# Using gx\_updatePagePart(panelId)

**URL:** <https://techcommunity.softwareag.com/t/using-gx-updatepagepart-panelid/93614>\
**Category:** Forum\
**Tags:** Mainframe-Integration, ApplinX\
**Created:** [May 18, 2010, 7:43pm UTC](https://techcommunity.softwareag.com/t/using-gx-updatepagepart-panelid/93614 "2010-05-18T19:43:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![cquaj](https://avatars.discourse-cdn.com/v4/letter/c/dec6dc/32.png) [@cquaj](https://techcommunity.softwareag.com/u/cquaj)\
**Post date:** [May 18, 2010, 7:43pm UTC](https://techcommunity.softwareag.com/t/using-gx-updatepagepart-panelid/93614/1 "2010-05-18T19:43:59Z")

</div>

Hi,

I have an instant solution using APX 8.1.

It is required to update the GXPagePlaceHolder panel using AJAX (on host key press).  
Is this possible and if so how?

I have configured supportPartialPageRendering=“true” in gx\_appConfig.xml.

Thanks.

---

<div class="post-metadata">

**Author:** ![cquaj](https://avatars.discourse-cdn.com/v4/letter/c/dec6dc/32.png) [@cquaj](https://techcommunity.softwareag.com/u/cquaj)\
**Post date:** [May 21, 2010, 9:48pm UTC](https://techcommunity.softwareag.com/t/using-gx-updatepagepart-panelid/93614/2 "2010-05-21T21:48:00Z")

</div>

Is there anybody who can possibly answer this question?

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:** [May 23, 2010, 8:34pm UTC](https://techcommunity.softwareag.com/t/using-gx-updatepagepart-panelid/93614/3 "2010-05-23T20:34:24Z")

</div>

cquaj,

we are trying to test it here, but could you please specify whether your application is a java or a .net?

Thanks!

---

<div class="post-metadata">

**Author:** ![cquaj](https://avatars.discourse-cdn.com/v4/letter/c/dec6dc/32.png) [@cquaj](https://techcommunity.softwareag.com/u/cquaj)\
**Post date:** [May 24, 2010, 12:07pm UTC](https://techcommunity.softwareag.com/t/using-gx-updatepagepart-panelid/93614/4 "2010-05-24T12:07:37Z")

</div>

Thanks Tanya.

It is a Java application…

---

<div class="post-metadata">

**Author:** ![Ohad\_M](https://avatars.discourse-cdn.com/v4/letter/o/7ba0ec/32.png) [@Ohad\_M](https://techcommunity.softwareag.com/u/Ohad_M)\
**Post date:** [May 24, 2010, 8:44pm UTC](https://techcommunity.softwareag.com/t/using-gx-updatepagepart-panelid/93614/5 "2010-05-24T20:44:20Z")

</div>

cquaj,

Here’s what you need to do:

1. Place a gx:div tag around the GXPagePlaceHolder like this:

```auto

<gx:div id="instantPanel">
      <gx:placeholder id="GXPagePlaceHolder">Design time page content</gx:placeholder>
</gx:div>
```

1. Now you’ll have to override the default behavior of the PF buttons on your keyboard. Go to config/gx\_keyboardMappings.xml and add the following line :

```auto

<GXKeyboardMapping additionalKey="0" keyCode="114" targetFunction="gx_updatePagePart('instantPanel');gx_SubmitKey('[PF3]')"/>
```

This will change the behavior of the PF3 key (keyCode=114), however, the same has to be done for the rest of the keys.

We tested it here and it seems to work OK, but if your application contains generated pages , we do not recommend applying partial page rendering to the instant placeholder.

Hope this helps,  
Regards,  
Ohad

---

<div class="post-metadata">

**Author:** ![cquaj](https://avatars.discourse-cdn.com/v4/letter/c/dec6dc/32.png) [@cquaj](https://techcommunity.softwareag.com/u/cquaj)\
**Post date:** [May 27, 2010, 11:42pm UTC](https://techcommunity.softwareag.com/t/using-gx-updatepagepart-panelid/93614/6 "2010-05-27T23:42:48Z")

</div>

Hi Ohad,

I have implemented and tested this on-site and it works well.

Thank you for your help…

---

<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:58pm UTC](https://techcommunity.softwareag.com/t/using-gx-updatepagepart-panelid/93614/7 "2021-04-02T14:58:30Z")

</div>


