Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 2 Jahren
Letzter Beitrag:
vor 2 Jahren
Beteiligte Autoren:
Piet van Zanten, Fabrice Harari, Phil B

[WD21] Fill HTML Control With Data

Startbeitrag von Phil B am 03.06.2016 13: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.



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

von Fabrice Harari - am 03.06.2016 18:12
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,

von Piet van Zanten - am 03.06.2016 18:48
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.