Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
8573 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ม.ค. 21
2431
How to add Fields in Form แก้ไขแล้ว
5
ก.ค. 19
4907
1
พ.ค. 16
3864
How to enforce a pop up window? แก้ไขแล้ว
3
เม.ย. 16
9959
0
มี.ค. 15
3526