PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WB]: Site in default mode with AWP pages (or PHP)?
[WB]: Site in default mode with AWP pages (or PHP)?
Iniciado por guest, 14,sep. 2016 15:09 - 4 respuestas
Publicado el 14,septiembre 2016 - 15:09
I have a site in Dynamic WebDev mode (non-AWP mode), i.e. all pages are addresed in code via PageDisplay(PAGE_Name) and available via
http://site/PAGE_Name/some_abrakadabra I need a specific page that will take parameters, i.e. something like this
http://site/upload.php… or
http://site/upload.awp… Is it possible?
Publicado el 14,septiembre 2016 - 15:22
Yes it's possible, using one awp page or you can use your project (dynamic) and jump to whatever page you need according to the parameter values.


To retrieve the value of the parameters use the PageParameter function.
http://doc.windev.com/en-US/index.awp…
Publicado el 14,septiembre 2016 - 15:25
Hi Arekusei,

Yes you can. You can mix and match dynamic and awp pages in a single project.
You will need awp to have the parameters passed from the client (web browser).
In that case you can't use PageDisplay() which is server side only in that case.

Use FileDisplay() instead from the browser code to open an awp page.
Use ScriptDisplay() to open a php, asp, etc page.

All the details for awp pages can be found here .

Cheers,

Peter Holemans
Publicado el 14,septiembre 2016 - 15:54
Thank you for quick answers.
How can I request those page from outsite?
Publicado el 14,septiembre 2016 - 16:03
if you use one awp page just use one URL like your example
http://site/upload.awp…
if you use dynamic pages use the URL (just one example)
http://site/WD210AWP/WD210AWP.EXE/CONNECT/YOR_APP…

and in the section "Initializing the project after connection to the site" of your project just use something like this:

IF PageParameter("param")="1" THEN
PAGEDISPLAY(PAGE_PARAM_1)
END