Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
8572 Näkymät

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

Avatar
Hylkää
Paras vastaus

Hi,

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


Avatar
Hylkää
Tekijä

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
tammik. 21
2429
5
heinäk. 19
4905
1
toukok. 16
3863
3
huhtik. 16
9953
0
maalisk. 15
3524