PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WEBDEV 2024 → Return to certain page of zone répetée
Return to certain page of zone répetée
Iniciado por Stijnv, fev., 01 2005 11:19 AM - 2 respostas
Publicado em fevereiro, 01 2005 - 11:19 AM
Hello,

I have a Zone Répétée with a button to go to a detailpage of the selected row. In the ZR there is a hidden field with the ID and an attribute ATTid. When a users clicks the button the detailpage is opened with a parameter (pageaffiche(Detailpage, ATTid)). This works perfect. But now i would like the have a link on my detail-page to return to the ZR-page and on the correct page of the ZR(-réglette) (!). So i tried it like this: remember the id when the detailbutton is clicked, set the "rubrique mémorisée" of the ZR to the ID and on return to the page i just have to do this <name ZR> = rememberedID. I found out that this part would work also, but now when you click the detail-button it is impossible to find the right ATTid. When there is no "rubrique mémorisée" filled in, the right ATTid is passed on to parameter.
Is there no possibility to remember the state of the "réglette" for example, or another way to position the ZR?

Thanks!
Publicado em fevereiro, 01 2005 - 11:36 AM
Stijnv has written :

Hello,

I have a Zone Répétée with a button to go to a detailpage of the selected
row. In the ZR there is a hidden field with the ID and an attribute ATTid.
When a users clicks the button the detailpage is opened with a parameter
(pageaffiche(Detailpage, ATTid)). This works perfect. But now i would like
the have a link on my detail-page to return to the ZR-page and on the
correct page of the ZR(-réglette) (!). So i tried it like this: remember
the id when the detailbutton is clicked, set the "rubrique mémorisée" of
the ZR to the ID and on return to the page i just have to do this <name
ZR> = rememberedID. I found out that this part would work also, but now
when you click the detail-button it is impossible to find the right ATTid.
When there is no "rubrique mémorisée" filled in, the right ATTid is passed
on to parameter.
Is there no possibility to remember the state of the "réglette" for
example, or another way to position the ZR?

Thanks!


Hello,

have you tried to simply callback the page via PageRefresh(NameOfYourPage)
in server code ??
It should just do what you want I think.

Have a nice day,

Olivier
Publicado em fevereiro, 01 2005 - 12:16 PM
simple and effective!
thanks a lot!
It is not exactly what I want but it is good enough, i have wasted too much time on this already.
It is actually like this: in the detail-page I also have two links to go to the previous detail-page and the next detail-page. So if a users works with these links he could end up at the detailpage of an item that is in another page in the ZR. If he than clicks the link to return to the ZR-page, the ZR should be positionned at the correct page (with the item last detailed). If somebody knows how to do this...

thx