/ Forums / Advansys Formativ / Creating Solutions with Formativ / Dynamic Form Component Events / Reply To: Dynamic Form Component Events
January 31, 2012 at 3:29 pm
#8241
Unfortunately this does not seem to be possible. We have not found a way to get VBScript to assign an event handler dynamically.
A couple of suggestions:
- Try experimenting with the VBScript function GetRef (designed to support DHTML events), like this:
.onClick = GetRef("testSub")
- Develop a COM-enabled component to replace the Form, using a language that supports dynamically assigned event handlers (eg. Delphi, C#, VB.NET). You can create an instance of such a component from a Formativ applet, and pass data between the applet and component. You may find the featured topic .net modules useful.
I hope this helps.
Kind regards,
Advansys Support