Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
4604 Tampilan

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?

Avatar
Buang
Jawaban Terbai

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"

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
3
Apr 25
4828
5
Nov 23
43192
3
Sep 23
9574
1
Sep 22
3864
1
Jun 22
12667