WB 12 - executing a page from another page and return tot the first page.

Startbeitrag von Aad Gouka am 01.12.2008 12:06

Hi all,

I'm converting a WD12 project to WB12 and got stuck with a "minor" problem. When I'm executing a page from another page, the code execution in the first window doesn't stop. So when the second window is closed, the code after the pagedisplay(second window) command has already been executed. Is there a workaround for this ?

I hope I made myself clear. Thanks for any help in the good direction.

Kind regards,

Aad

Antworten:

Re: WB 12 - executing a page from another page and return tot the

Hi...

You CANNO'T and SHOULDN'T try to duplicate the process you were using in
windev in a web site... It doesn't work the same way, and you are going
to be stuck all the time with minor problems like this one...

If I understand correctly, you are opening here a second browser window
and displaying a page in it, and yo want to come back to the first one
afterwards... That is NOT a standard web behavior and will create many
problems (what happen when the user CLOSES the first page? and that is
just one example)...

What you should do here is display the second page INSTEAD of the first
one, then display the first page again, all of that in the SAME
browser... And of course, adapt your code accordingly...

Best regards

--
Fabrice Harari
WinDev, WebDev, WinDev Mobile Video Courses
More information on http://www.fabriceharari.com


Aad Gouka wrote:
> Hi all,
> I'm converting a WD12 project to WB12 and got stuck with a "minor" problem. When I'm executing a page from another page, the code execution in the first window doesn't stop. So when the second window is closed, the code after the pagedisplay(second window) command has already been executed. Is there a workaround for this ?
> I hope I made myself clear. Thanks for any help in the good direction.
> Kind regards,
> Aad
>
>
Message forwarded from pcsoft.us.windev

von Fabrice Harari.pcs.crosspost - am 01.12.2008 13:42
Hi Fabrice,

Thank you for you reply.

I'm NOT opening a second browser but stay in the same session like a table/form construction. I understand as from your replay that it isn't possible to call a window and pick up the code where I left it. So everything after a pagedisplay() is not executed when the focus gets back to the calling page i.e. after pagedisplay(previouspage()) I have to put all the code from the 2nd page in the first then.

Thanks again.

Regards,

Aad





von Aad Gouka - am 01.12.2008 13:55
Hi Aad,

pagedisplaydialog() might help you...

Cheers,

von Peter Holemans - am 01.12.2008 15:16
Hello Peter,

Thank you for your suggestion. The help file looks very promissing, but....

This is the message I'm receiving:

The current page () cannot be closed by PageCloseDialog: it was not opened by PageDisplayDialog.
To close it, use ContextClose.

I'm using PageDisplayDialog for sure. Any hints ??


Regards, Aad



von Aad Gouka - am 01.12.2008 16:08
Peter,

I tried PageDisplayDialog in another page and it works great. Just what I wanted. Thanks again for your input.

Kind regards,

Aad



von Aad Gouka - am 03.12.2008 06:37
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.