Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 5 Jahren, 1 Monat
Letzter Beitrag:
vor 5 Jahren, 1 Monat
Beteiligte Autoren:
willy hermans, Paulo Oliveira, Alexandre Leclerc, Viggo Poulsen, Allard

Dynamic site with parameter

Startbeitrag von willy hermans am 25.05.2013 20:24


On a site the first page is an index. PAGE_Index
The first Dynamic page = PAGE_Start

It works fine.

Now I want to start the site with a parameter. It must be possible that the site is opened from a facebook link. In that case the start page have to display the selected article by passing the parameter.

Is that possible.


Willy Hermans


Hi Willy

Yes that should be possible

In the page or a procedure that you run in the page has to receive your parameter. The parameter can be a string that contains the link info from your facebook page

If string in the parameter equals the parameter you sent then an action can be applied

You could sent the url and an optional article id. The aricle id could then be used to load a specific article.

Ive not looked into this in detail. The thing you should be looking at is how the passing of a parameter is done so the link parameters are useble.

I'll have a look at it. Ill be back at you with, hopefully a coding example




von Allard - am 26.05.2013 14:59
Hi Willy
This is from a Dynamic AWP Restaurant project i have made, but it should work in Dynamic without AWP as well:

In Project code, initializing (server):

gnShopID is int = PageParameter("S") ; DeclareAWPContext(gnShopID)
gnTypeID is int = PageParameter("T") ; DeclareAWPContext(gnTypeID)
gsBordID is string = PageParameter("B") ; DeclareAWPContext(gsBordID) // Bord means Table in Danish.

//Remove DeclareAWPcontexi if you are not using AWP

The 3 global variables you can use now for whatever you choose.

To call the site you can use this:

When you want to test this, you have to prime the parameters in WebDev:
Select Project / Test mode / Configure the test mode.
Put this in Parameter for running the site test:

That's it. Works very fint.

Best regards
Viggo Poulsen

von Viggo Poulsen - am 26.05.2013 16:39
Hi Willy,

As far as I can remember, if you use a native WebDev dynamic site (non AWP), you must use a "start" page in html/awp receive the parameters then launch the dynamic site using DynamicSiteDisplay(). If you use AWP pages, as previously stated in the precedent posts, it will work using PageParameter().

Best regards,
Alexandre Leclerc

von Alexandre Leclerc - am 27.05.2013 12:30
You can use PageParameter to get the values of the parameters in one Dynamic site.

von Paulo Oliveira - am 27.05.2013 13:28
Many thanks to all

The startpage of the site can now be opened with an articleNr. And this is now the first article on te screen.

There are some other problems with facebook but I start a new topic because it is completely different.

Willy Hermans

von willy hermans - am 27.05.2013 19:58
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.