Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/454.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 在Sencha Touch应用程序中重定向视图_Javascript_Extjs_Sencha Touch - Fatal编程技术网

Javascript 在Sencha Touch应用程序中重定向视图

Javascript 在Sencha Touch应用程序中重定向视图,javascript,extjs,sencha-touch,Javascript,Extjs,Sencha Touch,我在Sencha Touch应用程序中有一个列表,在此重定向中无法正常工作 redirectToSurveyEditionView: function (item, record) { var templateName = record.data.templateName, customerAddress = record.data.customerAddress; this.redirectTo(Ext.String.format(Survey.util.Set

我在Sencha Touch应用程序中有一个列表,在此重定向中无法正常工作

  redirectToSurveyEditionView: function (item, record) {
    var templateName = record.data.templateName,
      customerAddress = record.data.customerAddress;
    this.redirectTo(Ext.String.format(Survey.util.Settings.getRoute('surveyEdition'), templateName, customerAddress));
  },
我的路线是:

routes          : {
 'surveys/:customerId/openSurveys': 'initViewController'
},
只在第一行有效。。我做错了什么


如果我进行调试,我可以正确地看到templateName和customerAddress,并且正在检测事件(例如,我放置了一个console.log()),但是当我点击该行时,它不起作用

你能解释一下应该发生什么和没有发生什么吗?还有,你的路由配置和共享代码是什么。我在帖子中添加了新代码。。