PDA

View Full Version : Object reference of two different files



siriusblack
27 Nov 2011, 9:05 PM
Hi All,
I am using ExtJS for one of my projects. In the project, I have two similar forms, scheduleForm and scheduleTemplate. Functionality of these forms are similar, and their elements are also same. I have kept variable names different. In my project, if I load scheduleForm or scheduleTemplate separately, they work fine. But if I load scheduleForm after opening (and closing) scheduleTemplate, the system keeps referring to objects in scheduleTemplate.

To close the forms, I have called form.destroy and form.close. Theoritically, what I have understood is, if I call these functions, they will remove the scope of that form from the memory. So, after closing scheduleTemplate, if I open scheduleForm, it should work properly. But this isn't happening right now.

Can anybody help me with this problem?

I have attached xds and associated javascript files with this post.
29604

Thanks in advance.

Regards,
Sushil

mitchellsimoens
28 Nov 2011, 6:40 AM
Did you change any of the Designer files yourself?

siriusblack
28 Nov 2011, 7:41 AM
No, I haven't done that. I use the designer to modify xds files.

mitchellsimoens
28 Nov 2011, 7:52 AM
Then I would ask this in the Designer forum to see what their code is doing wrong and so that they could fix something if something isn't 100% working.

siriusblack
28 Nov 2011, 8:06 AM
Copy That!