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

I have seen some decorators that are used to save or write, and others work with change events of the forms...

Is there a way to execute a method on read call for a model?, i.e., when the model is called for read records, because I need to process the data before displaying it. 

My model is only a table, no views, no froms, but I call if from come another module as need


Avatar
Buang
Jawaban Terbai

Hi Jose:

There is no decorator for read. But, you can define a computed field that does the required pre-processing of the data and use the computed field in your custom module.

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
3
Nov 24
29938
0
Des 21
2270
0
Apr 15
4569
2
Mar 15
10366
1
Mar 15
3921