Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
8516 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

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


Ảnh đại diện
Huỷ bỏ
Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 1 21
2358
5
thg 7 19
4831
1
thg 5 16
3811
3
thg 4 16
9897
0
thg 3 15
3446