3 / 3
Feb 2020

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? 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

  • created

    Jan '20
  • last reply

    Feb '20
  • 2

    replies

  • 1.0k

    views

  • 2

    users

  • 2

    links

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

Ralf

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!