Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
5216 Zobrazení

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,

});
Avatar
Zrušit
Nejlepší odpověď

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');
Avatar
Zrušit
Autor

Thank you

Nejlepší odpověď

Hello Jithin,

Try below code

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

correct me if i am wrong !


Thanks & Regards,

Rohit

Avatar
Zrušit
Autor

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

Related Posts Odpovědi Zobrazení Aktivita
0
pro 19
10120
2
pro 17
6989
1
led 17
3387
4
srp 23
12199
0
bře 22
3725