1 / 3
Jan 2020

Dear Developers,
I am developing an accounting application in EGroupware. For this I have a Nextmatch index

and from there I open an edit Pop up (booking edit) which it self directly (not via iframe) includes a Nextmatch widget with the booking lines:

From this nextmatch you can open each line of the booking via a new edit (booking line edit):


On the save button of this booking-line edit form I have the following:

if ($save_result === 0) {
//Close window
//$msg, $app, $id=null, $type=null, $targetapp=null, $replace=null, $with=null, $msg_type=null
Framework::refresh_opener($msg, $this->app, $content[$this->name_id], ‘update’, null, null, null, $msg_type);
Framework::window_close();
}

On save the window closes as expected, but the

refresh_opener

refreshes the main application window and not the booking edit Pop up window as I would like it to.

I there an EGroupware way to refresh the edit Pop up window instead?

Thank you for your support!

BR Alex

  • created

    Jan '20
  • last reply

    Jan '20
  • 2

    replies

  • 1.4k

    views

  • 2

    users

  • 5

    links

Framework::refresh_opener always refreshes the main window because the refresh is carried out by the framework object:


Only way to avoid that would be implementing an observer in your app.js:

If your observer returns true, the the frameworks refresh method is not called. Obviously your observer should carry out the wanted refresh, as it is not happening otherwise.

Be aware that observer methods get called for refresh requests of other apps too!

Ralf

Hello Ralf,
thanks a lot for your reply, I will check it out.
BR Alex

Suggested Topics

Want to read more? Browse other topics in Developers or view latest topics.