02-24-2022, 11:27 PM
(02-24-2022, 10:12 AM)Alexandre Machado Wrote: The problem here is that the controls that you create in your HTML file (e.g input controls) don't have any correspondent class/control on server side. When you change anything on the browser, the server is not notified of those changes (through a request).
Do you have a list of types of controls that you have (e.g. edits, combo boxes, radio buttons, check boxes, etc)?
I believe the best way to do this is via templates. A mix of raw HTML for most of the document + a few IW controls that can be created at runtime...
Hi Alexandre. Yes this form will be made up mainly of Combo boxes, memos and text boxes.
I have started to use templates and got something working reasonably well, but I then need to find a way to save/reload this data easily. I can use a database which is probably what I will start off with, but the trouble with this is that if the questionnaire changes frequently, that will make maintaining the database and having to add more fields, obsolete old fields etc a bit of a pain. That is why I was hoping of an easy way to save the page to file would be possible.
The way I am using the template is to define a page that is part of a master page then just put in place holders in the html file and correspondingly named components on the IW Form. This allows me to put in some logic like hiding memo boxes unless a Yes is defined in a corresponding combo box. It works quite well but takes a bit of time to get it all setup.
Any suggestions on saving the template to a blob field in a database or file?
Thanks
David.