Skip to Content
Menu
This question has been flagged
1 Atsakyti
4624 Rodiniai

attribute on_write in tree view <tree colors="red:state == 'draft';black:state == 'valid'" string="Journal Items" create="true" on_write="on_create_write" version="7.0" editable="top">

why the on_write attribute used in tree view?

Portretas
Atmesti
Best Answer

Hi,

In on_write, we give the name of a method (here: "on_create_write" ) on the tree view’s respective model, which will be called with the id of a record after having created or edited that record. And the method should return a list of ids of other records to load or update. It is useful in an editable list view, like here editable="top"

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
3
bal. 25
4845
5
lapkr. 23
43204
3
rugs. 23
9576
1
rugs. 22
3870
1
birž. 22
12671