showPrintPreview in dialog

Hi,

I have:

  • normal form: ‘FormA_normal’
  • form in dialog: ‘FormB_in_dialog’
  • form for preview :’ FormC_for_preview’
  • and the preview of this form : 'Preview_of_form’C

When I show a preview with showPrintPreview method from ‘FormA_normal’ it works fine.

When I show the preview ‘Preview_of_formC’ from ‘FormB_in_dialog’, the preview is correctly show in dialog, but when I close it, the form in dialog load ‘FormC_for_preview’ (not the last form use ‘FormB_in_dialog’) and the ‘FormA_normal’ in background change for ‘FormB_in_dialog’.

I hope it’s clear :) ,

Thanks

When I show a preview with showPrintPreview method from ‘FormA_normal’ it works fine.

So, basically this tells you it works.

When I show the preview ‘Preview_of_formC’ from ‘FormB_in_dialog’, the preview is correctly show in dialog, but when I close it, the form in dialog load ‘FormC_for_preview’ (not the last form use ‘FormB_in_dialog’) and the ‘FormA_normal’ in background change for ‘FormB_in_dialog’.

Does your formb or formc have an onShow method attached that make it perform differently?
When you go back from a formindialog the form in the main frame will ‘show’ again so the onShow is triggered again…

I set none to onShow method on Form A , B and C but it’s the same.

I have create a solution to show this problem

Form_in_dialog.servoy (5.41 KB)

Which version of Servoy?

Servoy version 3.5-build 513, repository version 30

You protected your solution :?

Little hard to debug this way.
Anyway when you are really sure you did nothing wrong you should add it to the Support System along with your (unprotected!) solution…

:?: No, I didn’t protect it, I tried to import it and no password is required.

No password is required to change in designer mode too.

I was definitely not able to change to design mode

Ok it will be fixed in 3.5.1
Thanks