Hello,
I'm trying to create a web app using Delphi (10.4.2), Intraweb (15.2.66) and IWTemplateProcessorHTML and I have a result i don't understand when I use a in-house custom class TIWAppForm as basis to create my forms.
To simplify, I created a small test case, one time using the common TIWAppForm, and the other one using our custom TIWAppForm :
When I use the common TIWAppForm, everything works fine, the events are called, I can select a value in the ComboBox and toggle between forms.
But when I use my in-house TIWAppForm, the components have no effect. Breakpoints in my procedure are not reached, nothing happens.
When I inspect the HTML code in my browser (Edge, Firefox or Chrome), the only difference I see is missing tags "event" in the verison using the custom class.
Common class
https://www.screencast.com/t/uThd9NGzj
Custom class
https://www.screencast.com/t/rTtrXpbQ
I inspected my custom class to find the reason why my events are not included in the generated html page, but I don't find it.
I don't know if the issue comes from a parameter or from a piece of code.
Any idea about the cause of removing the events from the generated HTML page ?
Many thanks for your help.
I'm trying to create a web app using Delphi (10.4.2), Intraweb (15.2.66) and IWTemplateProcessorHTML and I have a result i don't understand when I use a in-house custom class TIWAppForm as basis to create my forms.
To simplify, I created a small test case, one time using the common TIWAppForm, and the other one using our custom TIWAppForm :
- 2 forms
- FormA contains a ComboBox (with a label to display the selected itemIndex with OnChange event) and a button to call FormB (with OnClick event)
- FormB contains only one button to callback FormA (with OnClick event)
When I use the common TIWAppForm, everything works fine, the events are called, I can select a value in the ComboBox and toggle between forms.
But when I use my in-house TIWAppForm, the components have no effect. Breakpoints in my procedure are not reached, nothing happens.
When I inspect the HTML code in my browser (Edge, Firefox or Chrome), the only difference I see is missing tags "event" in the verison using the custom class.
Common class
https://www.screencast.com/t/uThd9NGzj
Custom class
https://www.screencast.com/t/rTtrXpbQ
I inspected my custom class to find the reason why my events are not included in the generated html page, but I don't find it.
I don't know if the issue comes from a parameter or from a piece of code.
Any idea about the cause of removing the events from the generated HTML page ?
Many thanks for your help.