|
| [WD21] Fill HTML Control With Data |
| Iniciado por guest, 03,jun. 2016 15:49 - 2 respuestas |
| |
| | | |
|
| |
| Publicado el 03,junio 2016 - 15:49 |
Hi Everyone
I am trying to complete a web form which is displayed in the HTML control of Windev with data stored in the database. Is this possible?
Its my understanding that you can open either HTML code or a URL in the HTML control.
Using a URL opens the webpage correctly, but then I am not sure how to fill out the fields on the web form that is displayed in the control.
Using HTML code in the control is like displaying an offline webpage, so while its possible to insert values into the HTML code, I am then not able to submit the web form as there is no connection to the server.
We have also tried other options such as Selenium to automate external browsers from within Windev. This works, but is not suitable for our needs and we are not able to manipulate the HTML control within Windev with Selenium as far as I am aware.
Can anyone help with this?
Thanks In Advance.
Phil. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 03,junio 2016 - 20:12 |
Hi Phil
This is what I would try. I haven't done it before, so I'm not 100%, but I have creatd dynamic web site with html pags and WINDEV (before webdev existed) based on the same principle:
use html code in your control and do replaces in it to put your initial values. Now, to go around your problem "... I am then not able to submit the web form as there is no connection to the server.", in fact, you should be able to. IN the html code of the submit button, "point" to an awp page of your web site.
In the awp page, init portion, use the pageparameter function to retrieve all the parameters sent (they should match the fields in your page)...
From there, you are in your web site, and you can either just continue and display the called awp page, or do a pagedisplay of another page, based on the content of the fields...
Yep, that should work 
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 03,junio 2016 - 20:48 |
Hi Phil,
I stopped using Windev at version 16, but I remember there was an example called WD Controlling IE, which was very useful to me in manipulating external websites. It used an ActiveX control and it could fill a form automatically from within a Windev program. Perhaps it is useful in your case too.
Best regards, Piet |
| |
| |
| | | |
|
| | | | |
| | |
|