コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
5192 ビュー

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,

});
アバター
破棄
最善の回答

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');
アバター
破棄
著作者

Thank you

最善の回答

Hello Jithin,

Try below code

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

correct me if i am wrong !


Thanks & Regards,

Rohit

アバター
破棄
著作者

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

関連投稿 返信 ビュー 活動
0
12月 19
10110
2
12月 17
6979
1
1月 17
3380
4
8月 23
12176
0
3月 22
3711