[英]How to pass value js controller to js controller?
I'm the new of Alfresco framework. 我是Alfresco框架的新成员。 So I would like to pass the value from js controller to other js controller. 所以我想将值从js控制器传递给其他js控制器。 I don't know how to pass. 我不知道如何通过。 Example: the value of group name in workflow-form.js to sample-module.js. 示例:工作流form.js中的组名的值到sample-module.js。
Please give me an instructions. 请给我一个指示。 Thanks advance. 谢谢前进。
if you want to pass variables between controllers, you should declare variables in the model like this: 如果要在控制器之间传递变量,则应在模型中声明变量,如下所示:
var newVar = document.properties.name;
model.newVar = newVar;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.