Welcome! Log In Create A New Profile

Advanced

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

Posted by Aad Gouka 
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
Fabrice Harari.pcs.crosspost
Re: WB 12 - executing a page from another page and return tot the
December 01, 2008 02:42PM
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 [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
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



Hi Aad,

pagedisplaydialog() might help you...

Cheers,
Hello Peter,

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

This is the message I'm receiving:

The current page (<wijzigbijdragen>) 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

Peter,

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

Kind regards,

Aad

Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: