29.03.2010, 18:04 | #2 |
Axapta
|
Constructing a form from your X++ code
When you construct a form from your X++ code, you must use the system classes. Your code lines should look similar to the following X++: form = ClassFactory.FormRunClass(formstr(CustTable));
form.init();
form.run(); The idea of using this indirection is to make it possible to inherit the FormRun class and override selected methods to change the behavior of the form executor. Subsequently, you can have all forms in the system executed with the new class instead of the ordinary FormRun by supplying the inherited class in the FormRunClass() method. The system constructs all forms activated from the Application Object Tree using the xClassFactory. |
|
|
За это сообщение автора поблагодарили: Hyper (1), alex55 (1). |