تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
8477 أدوات العرض

Hi,

I found by tracing that when creating a new object the method view_init is issued. I need know if there is a method that is triggered when the form is opened

الصورة الرمزية
إهمال
أفضل إجابة

Hi,

there is a method is fields_view_get. Which is triggered when any kind of view is loaded.


الصورة الرمزية
إهمال
الكاتب

Hi Emipro Technologies, Thanks for the reply, I traced it and found it is triggered when loading the form. Now I have bit more queistions : 1. I noticed that the method fields_view_get is called twice, why is that? 2. What is the role of the methods 'view_init' and 'default_get?

It is called 2 time because it loads form and tree view ... trace it again and check view_type variable

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
يناير 21
2313
5
يوليو 19
4799
1
مايو 16
3782
3
أبريل 16
9870
0
مارس 15
3425