如何通过数据煎茶touch2.0屏幕之间?屏幕、数据

2023-09-06 23:51:26 作者:风月不等闲

我的工作煎茶touch2.0的应用程序,我想从一个屏幕发送数据another.I知道这个问题已经被问的此处,但我不觉得有帮助,所以我问在这里了。

i am working on sencha touch2.0 app and i want to send data from one screen to another.I know this question has already been asked here but i dont find it helpful so i am asking it here again.

我有一个复选框列表视图在我的应用程序,我想是,当我点击一个或多个复选框,并进入下一个画面,我会得到所有的'检查'名单的项目在这里,意味​​着我要送检查列表从一个屏幕的项目数据another.From我的研究对净我才知道,这可以通过调度()方法的 http://docs.sencha.com/touch/2-0/#!/api/Ext.app.Application-method-dispatch 。但我不如何做到it.So,请给我提供任何建议/解决方案,以摆脱这些问题。

I have a checkbox listview in my app and what i want is that when i click on one or more checkboxes and go to next screen,i will get all the 'checked' list items here,means i want to send checked list items data from one screen to another.From my research on net I came to know, this can be done by dispatch() method http://docs.sencha.com/touch/2-0/#!/api/Ext.app.Application-method-dispatch. But i dont how to do it.So,please provide me any suggestion/solution to get rid of these problem.

感谢名单提前。

推荐答案

Ext.dispatch()是因为一个事实,即pcated在煎茶触摸2.0代$ P $你可以随时调用任何控制器在任何时候您想通过此的任何方法,就在您的看法:

Ext.dispatch() is deprecated in Sencha Touch 2.0 because of the fact that you can always call any method of any controller at anytime you want through this, right in your views:

yourAppName.getApplication()。getController.method(PARAMS)

甚至更远,你可以把它自动通过裁判控件在你的控制器。

Or even further, you can make it automatic through refs and controls in your controller.