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

Hi
How to pass values to pos screen widget. I tried to pass a dictionary like below. but it is not working. I am calling screen widget from a popup.

self.gui.show_screen('PackageReciept',{
'packages' : pkg_list,

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

try this 

this.gui.show_screen('screen_name', {'packages' : pkg_list});

and in your screen widget js get the values like this

var packages = this.gui.get_current_screen_param('packages');
Ảnh đại diện
Huỷ bỏ
Tác giả

Thank you

Câu trả lời hay nhất

Hello Jithin,

Try below code

this.gui.show_screen('screen_name', {'packages' : pkg_list});

correct me if i am wrong !


Thanks & Regards,

Rohit

Ảnh đại diện
Huỷ bỏ
Tác giả

I am calling 'this' to 'self ' variable. Thats why 'self.gui.show_screen' called. Its not working , any way thanks for replay rohit.

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 12 19
10106
2
thg 12 17
6976
1
thg 1 17
3378
4
thg 8 23
12172
0
thg 3 22
3710