|
| [WB 21/22] reset pageparameter |
| Iniciado por guest, 26,may. 2017 10:30 - 2 respuestas |
| |
| | | |
|
| |
| Publicado el 26,mayo 2017 - 10:30 |
Hi,
I'doing a call from an awp page to another page and this page returns a named parameter (?id=xxxx) to indicate the result. Sofar so good. But when I do an Ajax call after this, Webdev automatically receives this parameter again. In case the received parameter indicates an error, the error message is displayed over and over again. Is there a way to get rid of this parameter on the next server call? Of course I could use a hidden checkbox to check if the error has already been processed, but a more elegant way would be appreciated.
Kind regards, Piet |
| |
| |
| | | |
|
| | |
| |
| Publicado el 26,mayo 2017 - 14:55 |
Hi Piet,
for all AWP calls, webdev sends invisible parameters (from the top of may head, always starting by WD...)
So, you can simply, in the page init code area, do a pageparameter of those parameters and therefore test if you are in the case of an awp call.
You can easily find the names of the internal awp parameter by doing an info of pageparameter(1)...(10)
The only other solution I'm aware of would be to call your own page again without YOUR extra parameter, buthat would mean reload the whole thing.
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 26,mayo 2017 - 20:52 |
Hi Fabrice,
I tried: sInfo is string FOR i=1 TO 10 sInfo+=[CR]+(PageParameter(i)) END Info(sInfo) Unfortunately no invisible WD.. parameters among them. Meantime I used a checkbox, so problem solved. Thanks for your feedback.
Kind regards, Piet |
| |
| |
| | | |
|
| | | | |
| | |
|