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

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?

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

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"

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 4 25
4830
5
thg 11 23
43192
3
thg 9 23
9574
1
thg 9 22
3866
1
thg 6 22
12668