Home › Forums › General XMetaL Discussion › Using Xmetal Developer 9.0 w/MVS 2015 to debug xft › Reply To: Using Xmetal Developer 9.0 w/MVS 2015 to debug xft
Reply to: Using Xmetal Developer 9.0 w/MVS 2015 to debug xft
July 29, 2015 at 1:37 amLaunching the form this way requires you to inject any top-level objects yourself (from your script). If it every worked that code must be in there somewhere, perhaps in some previous version?
Your code should be doing something like this:
XftCtrl.AddTopLevelObject(“Application”, Application);
This method of launching a form is not documented however, so I can't point you to any docs that discuss this. Perhaps the person the implemented it copied it from our DITA customization? Either way, I suggest looking at that code to see how it is implemented by our development team: do a cross-file search (hopefully you have an editor that lets you do that) for “AddTopLevelObject” in all the JS files inside the XMetaL Author Enterprise install you will find a bunch of relevant examples.