|
| [WB23] - Loading the same page multiple times |
| Iniciado por guest, 01,jun. 2018 17:45 - 5 respuestas |
| |
| | | |
|
| |
| Publicado el 01,junio 2018 - 17:45 |
Hi All
I have designed a page which contains some controls. When the user requests the page it is loaded in a new browser tab. The user can then edit the contained controls.
Problem: I close the tab and re-request the page again. It opens in a new tab (as required) but remembers the values previously edited for the controls! So even though I closed the tab the newly request page is loaded with the control values as they were previously edited.
How can I load each request for this page so that it starts completely clean as a new instance?
Thanks |
| |
| |
| | | |
|
| | |
| |
| Publicado el 01,junio 2018 - 19:16 |
Hi JP
from your description, it looks like you are in the case of a CLASSIC website (non awp). In that case, contextclose is probably what you need to use.
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 01,junio 2018 - 20:40 |
Hi Fabrice,
I have more info on the problem:
[WB23 - Dynamic site and page is dynamic]
As an example, lets say the page contains invoice data. I want to allow the user to open multiple copies of the PAGE_Invoice in seperate tabs but each page would, of course, show different data depending on the invoice being viewed. However, it seems that WebDev thinks they are the same page or somehow connected and changes on one page get mixed up with the other. when trying to "update" fields on one page I get a message along the lines of "the back button was used and not the server state is inconsistent .."
NB: At this stage none of the page controls have any database fields connected to them, there is no HF context at the moment. I am just using dummy fields and entering dummy info in a dummy edit field - all just testing.
Given a WebDev Page, how cna I load multiple copies of it in different tabs and each one is totally seperate from any of the other pages?
Thanks! |
| |
| |
| | | |
|
| | |
| |
| Publicado el 03,junio 2018 - 11:14 |
Hi JP,
I don't think Webdev can handle that. But let's look at what you are trying to do, does it make any sense? As the user can only see one tab at a time there's no point in OPENING them all at the same time. You can easily emulate the tabbed view with just one page if you create a second plane on the main page. On plane 2 you have the currently viewed invoice and a quickview list of other "opened" invoices. This list can be a row of links with the appearance of a tab control, on click you open and show the requested invoice. The user won't see the difference and you have full control.
Kind regards, Piet |
| |
| |
| | | |
|
| | |
| |
| Publicado el 03,junio 2018 - 23:29 |
Hi JP,
AFAIK, it's not possible in a CLASSIC webdev site (but very easy in an awp one)... In Windev, this would be done with an openCHild and a window's alias and that does not exist in webdev.
So if your pages are the end of the line, you can use awp pages for that
Otherwise, something along the line of what iet describes may be more appropriate
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 04,junio 2018 - 12:48 |
Hi Piet and Fabrice
Thanks for the feedback. I will work on those suggestions.
Thanks again! |
| |
| |
| | | |
|
| | | | |
| | |
|