Hi,
I'm working on a Wizard form (generated using the WizardWizard) which retrieves a record selected in a ListPage (from element.Args().record()) in order to instantiate existing data and display this in form controls on the form.
1) MSDN info is rather thin on the ground so I've been looking at WMSLocationWizard as an example, which seems to instantiate a sysWizard variable as a means to communicate between the form and the class, however I don't understand where the sysWizard is ever instantiated, which seems critical.
Please explain how the sysWizard is instantiated and used to enable access from the form to the class, in my example WMSLocationWizard.
2) I am assuming that the Form and Class are intended to follow the MVC pattern as usual, with the form = view and class = controller; however, I don't understand how the form can communicate with the class. If the wizard class were a xxxTransition class then I'd either instantiate it in my form or call a static method from the form, but I seem unable to do either (the new() method is protected).
Am I broadly correct about the intended usage of the wizard form and class?
3) I can retrieve the record and initialize related tables in the Form init() method, but the call to WIZARD_CLASS::Main(args) method resets the state of my form. I think the database (business) logic should be performed in the class, and I can access my element.Args() in my class in order to instantiate my related tables just fine, but I'm then unable to set the text for my form controls via my form's XXXXWizard.setTexts().
How can I access tables in my Wizard class from my wizard Form setTexts() method?
Any help or general information much appreciated.