Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
4
Erster Beitrag:
vor 1 Jahr, 7 Monaten
Letzter Beitrag:
vor 1 Jahr, 7 Monaten
Beteiligte Autoren:
Piet van Zanten, Arekusei Timakobu

Pass parameter to the page that is displayed in iFrame (WebDev)

Startbeitrag von Arekusei Timakobu am 05.04.2016 06: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

Antworten:

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

von Piet van Zanten - am 05.04.2016 13:28
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.

von Arekusei Timakobu - am 05.04.2016 14:50
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

von Piet van Zanten - am 05.04.2016 18:28
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.