# Determine open windows of an application

**URL:** <https://help.egroupware.org/t/determine-open-windows-of-an-application/74255>\
**Category:** Developers\
**Created:** [January 29, 2020, 3:15pm UTC](https://help.egroupware.org/t/determine-open-windows-of-an-application/74255 "2020-01-29T15:15:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexS](https://help.egroupware.org/letter_avatar_proxy/v4/letter/a/2acd7d/32.png) [@AlexS](https://help.egroupware.org/u/AlexS)\
**Post date:** [January 29, 2020, 3:15pm UTC](https://help.egroupware.org/t/determine-open-windows-of-an-application/74255/1 "2020-01-29T15:15:39Z")

</div>

Dear @RalfBecker,  
with regard to your advice here: [Framework::refresh\_opener, is it possible to refresh the parent pop up window instead of the main app window?](https://help.egroupware.org/t/framework-refresh-opener-is-it-possible-to-refresh-the-parent-pop-up-window-instead-of-the-main-app-window/74248/2) I would like to ask what is the correct way to get the open windows of an application. So if for example the user has opened multiple booking edit Pop ups how can I get a list of them in app.js?

Thanks again for your support!  
Alex

---

<div class="post-metadata">

**Author:** ![RalfBecker](https://help.egroupware.org/user_avatar/help.egroupware.org/ralfbecker/32/1307_2.png) [@RalfBecker](https://help.egroupware.org/u/RalfBecker)\
**Post date:** [January 29, 2020, 5:53pm UTC](https://help.egroupware.org/t/determine-open-windows-of-an-application/74255/2 "2020-01-29T17:53:45Z")

</div>

@hadi.nategh can probably better answer this, as it is his code:

[https://github.com/EGroupware/egroupware/blob/master/api/js/framework/fw\_base.js#L867](https://github.com/EGroupware/egroupware/blob/master/api/js/framework/fw_base.js#L867)

Ralf

---

<div class="post-metadata">

**Author:** ![AlexS](https://help.egroupware.org/letter_avatar_proxy/v4/letter/a/2acd7d/32.png) [@AlexS](https://help.egroupware.org/u/AlexS)\
**Post date:** [February 3, 2020, 7:10pm UTC](https://help.egroupware.org/t/determine-open-windows-of-an-application/74255/3 "2020-02-03T19:10:58Z")

</div>

This worked just fine,  
for example I was able to refresh the nextmatch widget with id “nm” on the first found open Pop up which contains “actpm\_header” and belongs to the app “actpm” with the following lines:

> var popups = window.framework.popups\_get(‘actpm’, ‘actpm\_header’);  
> if ( typeof popups[0] !== ‘undefined’ ){  
> var actpm\_et2 = popups[0].etemplate2.getByApplication(‘actpm’);  
> actpm\_et2[0].widgetContainer.getWidgetById(‘nm’).applyFilters();  
> }

Thanks again!
