Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Thisformset vs this.parent.parent?
I have a button on a form that is within a formset. Made and tested code changes ages ago that referenced 'thisformset.method1'. Now I am getting an error of methods1 not found (obviously I changed something, but I do not know what) Now when I code this.parent.parent.method1 (which is the formset) it works.
What is the "rule" for when you can use thisform or thisformset vs the this.parent type referencing?
Thanks
Brenda
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement