|
FOROS PROFESIONALES WINDEV, WEBDEV y WINDEV Mobile |
| | | | | |
| Inicio → WINDEV 2024 → Pass parameter to the page that is displayed in iFrame (WebDev) |
| Pass parameter to the page that is displayed in iFrame (WebDev) |
| Iniciado por guest, 05,abr. 2016 08:46 - 3 respuestas |
| |
| | | |
|
| |
| Publicado el 05,abril 2016 - 08:46 |
I need to show a set of different controls depending of some condition. I supposed to use Internal Pages but it looks like Internal Pages are not the same thing as Internal Windows (in WinDev). The only way to implement required feature is to use iFrame that display different pages with set of controls. The question is how to pass parameters to displayed page? The sample code of page switching is:
SWITCH SomeId CASE 1 iFrame..URL = "PAGE_1" CASE 2 iFrame..URL = "PAGE_2" ... END |
| |
| |
| | | |
|
| | |
| |
| Publicado el 05,abril 2016 - 15:28 |
Hi Arekusi,
You could also use two different popups and use PopUpAnimate to display one in a cell on your page. Or use two cells and make them visible if needed. Advantage is that page code and variables are available in the popup. If you stick to iFrame than you can pass parameters using ?P1=xxx&P2=yyyy appended to the url.
Regards, Piet |
| |
| |
| | | |
|
| | |
| |
| Publicado el 05,abril 2016 - 16:50 |
Hi, Piet. Thank you for your response. Unfortunatelly PopupAnimate is used only in browser code but I need something to use in server code. The fact is I use a table in AJAX-mode and depending of selection I need to display some GUI. It looks like Row Selection of table (browser) is not executed when table is in ajax mode. With IFRAME I have another problem because I don't use AWP mode. I can change the URL that is used as source for IFRAME.
SWITCH Id CASE 1 IFRAME..URL = "PAGE_1" CASE 2 IFRAME..URL = "PAGE_2" END As you can see the URL is the name of PAGE but I can't concatenate the parameters. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 05,abril 2016 - 20:28 |
Hi Arekusei,
You can put the table and other controls in a cell and and the other one in another invisible cell containing the other table off the page to make it easier in the editor. These cells have the same size. In page initialization code you set: Cell_2..X=Cell_1..X Cell_2..Y=Cell_1..Y to put Cell_2 in the same position as Cell_1
Depending on which table you need, you make Cell_2 visible and Cell_1 invisible.
Regards, Piet |
| |
| |
| | | |
|
| | | | |
| | |
| | |
| |
|
|
|