PDA

View Full Version : Clearing and reusing a BasicDialog



jthorn
26 Sep 2007, 10:03 AM
Hello,
My application has a BasicDialog in which I render a Form. This works great simply by calling

form1.render(myDlg.body);
myDlg.show();

Later, I need to present the user with a different set of options, so I thought I would just use the same BasicDialog and render a different form in the body. This does not seem to work. If I call


form2.render(myDlg.body);
myDlg.show();

I get a "this.el is null or not an object error".

I apologize if this is a very basic question, but I have tried a number of approaches and searched for a solution and nothing seems to help. What is the best way to render the second form into the dialog? Is this even the best approach?

Thanks for your help.

Jeff