PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → How to create controls dinamically webdev 20
How to create controls dinamically webdev 20
Iniciado por guest, 14,ene. 2015 11:07 - 5 respuestas
Publicado el 14,enero 2015 - 11:07
Is there any procedure in webdev 20 that helps you create controls dynamically. I know there is a function ControlCreate() but it is for windev only.
Best Regards,
Kozeta Leka
Publicado el 14,enero 2015 - 11:25
Hi

ControlCreate is for windev only, but ControlClone is now available for webdev ...

So you just need one control of each type needed in your page, and you can duplicate them as needed

Best regards
Publicado el 14,enero 2015 - 11:27
Thank you very much.
Best regards,
Kozeta Leka
Publicado el 14,enero 2015 - 11:38
I have version 30F200041D of webdev 20 and it can only be used with reports in this version. I want to use it with pages of the website. Do I have to download a newer version of the webdev 20 ?
Best Regards,
Kozeta Leka
Publicado el 14,enero 2015 - 14:00
Hi again

no you are correct... current help state that it's available in webdev server code only for reports... My mistake...

so, you can:
- Create the max number of fields, have them invisible and make them visible when needed
- Use a looper where you have all types of fields, and make only one visible depending on the type you need
- Use JS to create fields on the fly (very complex to interface with webdev)

Best regards
Publicado el 14,enero 2015 - 14:12
Thank you , I guess I'll try the second suggestion...or create a windev application just for that part of the project where I need to create controls dynamically.
Best Regards,
Kozeta Leka