# How to open a new dialog window from a function menu (workplace)?

**URL:** <https://techcommunity.softwareag.com/t/how-to-open-a-new-dialog-window-from-a-function-menu-workplace/101154>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, NaturalONE, Natural-for-AJAX, Natural-on-Windows-Unix\
**Created:** [August 6, 2012, 4:58pm UTC](https://techcommunity.softwareag.com/t/how-to-open-a-new-dialog-window-from-a-function-menu-workplace/101154 "2012-08-06T16:58:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Orlando\_Bissacot\_Neto1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/orlando_bissacot_neto1/32/342_2.png) [@Orlando\_Bissacot\_Neto1](https://techcommunity.softwareag.com/u/Orlando_Bissacot_Neto1)\
**Post date:** [August 6, 2012, 4:58pm UTC](https://techcommunity.softwareag.com/t/how-to-open-a-new-dialog-window-from-a-function-menu-workplace/101154/1 "2012-08-06T16:58:06Z")

</div>

We have a corporative portal based on the Natural for AJAX workplace facility.  
This workplace has the regular panels: function, active functions and content. We use the NJX:XCIWPFUNCTIONS control to create the function menu from which the user can open Natural for AJAX and non-Natural pages at the content area or within a popup window.  
We need to open a new dialog window from the function menu (note: the page related to this menu option must be opened in a new browser window or as a new browser tab), but I can’t see how to do this using the NJX:XCIWPFUNCTIONS control.

---

<div class="post-metadata">

**Author:** ![Christine\_Zimmermann](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Christine\_Zimmermann](https://techcommunity.softwareag.com/u/Christine_Zimmermann)\
**Post date:** [August 9, 2012, 10:02am UTC](https://techcommunity.softwareag.com/t/how-to-open-a-new-dialog-window-from-a-function-menu-workplace/101154/2 "2012-08-09T10:02:51Z")

</div>

Hi Orlando,

In the data structure for the function tree you can specify the “type” of page. See [http://techcommunity.softwareag.com/ecosystem/documentation/natural/njx825/njx/njx\_xciwpfunctions.htm#njx\_xciwpfunctions](http://techcommunity.softwareag.com/ecosystem/documentation/natural/njx825/njx/njx_xciwpfunctions.htm#njx_xciwpfunctions)

If you set ADDNODE\_TYPE=“cispopup” for the corresponding node, this should be opened as popup. The popup is implemented as an own browser window.

Does this meet your requirements?

Best Regards,  
Christine

---

<div class="post-metadata">

**Author:** ![Orlando\_Bissacot\_Neto1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/orlando_bissacot_neto1/32/342_2.png) [@Orlando\_Bissacot\_Neto1](https://techcommunity.softwareag.com/u/Orlando_Bissacot_Neto1)\
**Post date:** [August 9, 2012, 4:37pm UTC](https://techcommunity.softwareag.com/t/how-to-open-a-new-dialog-window-from-a-function-menu-workplace/101154/3 "2012-08-09T16:37:48Z")

</div>

Hi Christine,  
Thank you for your hint.  
See: I can’t use a popup in this case. I need to have the URL (which is a non-Natural one) opened in a new window (or a new tab) of the browser.  
But I solved this problem assigning this function of the menu to a node which must be opened in a specific target: when I move the “\_blank” value to the XCIWPINFO\_NODE.TARGET variable, the URL is opened in a new window.  
Kind Regards,  
Orlando.

---

<div class="post-metadata">

**Author:** ![Christine\_Zimmermann](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Christine\_Zimmermann](https://techcommunity.softwareag.com/u/Christine_Zimmermann)\
**Post date:** [August 9, 2012, 5:23pm UTC](https://techcommunity.softwareag.com/t/how-to-open-a-new-dialog-window-from-a-function-menu-workplace/101154/4 "2012-08-09T17:23:01Z")

</div>

Hi Orlando,

Thanks for sharing your solution.  
Just 1 hint: When the workplace is closed, the page, which is opened in target “\_blank” won’t be closed automatically with the workplace. But this might be perfectly OK or intented for your application.

Best Regards,  
Christine

---

<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, 3:02pm UTC](https://techcommunity.softwareag.com/t/how-to-open-a-new-dialog-window-from-a-function-menu-workplace/101154/5 "2021-04-02T15:02:16Z")

</div>


