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

How can I communicate between multiple widgets? I have 2 widgets on the same page, and when clicking on one of the first widget button, I need to modify the content of the second widget.

Details: I extend FieldMany2One (selectbox) and ListView. What I need is, when select an option in FieldMany2One, I need to update content in ListView. What I need is to get an instantiated widget into another widget. In method reinit_value of FieldMany2One widget, I need to get instance of the ListView.

Can anyone help me?

Best regards, Pedro

Ảnh đại diện
Huỷ bỏ

It's not clear, could you provide the code you are using as example?

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 24
2294
1
thg 7 23
4687
0
thg 3 24
3424
1
thg 9 22
6372
1
thg 3 22
6246