Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.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
User interface Google脚本作为web应用程序部署-如何在单击事件时禁用不同的gui表单_User Interface_Google Apps Script - Fatal编程技术网

User interface Google脚本作为web应用程序部署-如何在单击事件时禁用不同的gui表单

User interface Google脚本作为web应用程序部署-如何在单击事件时禁用不同的gui表单,user-interface,google-apps-script,User Interface,Google Apps Script,我构建了一个基本上有两个gui屏幕的google gui web应用程序。第一个gui屏幕有一些文本输入字段,当用户单击“提交”时,它应该会调出第二个gui屏幕,显示一些结果 我的第二个gui与第一个相同: function displayForm2(hwEntered){ var app = UiApp.createApplication().setHeight('800').setWidth('600');; var panel = app.createVerticalPanel(); ..

我构建了一个基本上有两个gui屏幕的google gui web应用程序。第一个gui屏幕有一些文本输入字段,当用户单击“提交”时,它应该会调出第二个gui屏幕,显示一些结果

我的第二个gui与第一个相同:

function displayForm2(hwEntered){
var app = UiApp.createApplication().setHeight('800').setWidth('600');;
var panel = app.createVerticalPanel();
...code and stuff...
app.add(panel);
return app;
}

如何使其作为web应用程序工作?

您应该在同一个Ui实例中构建2个GUI,但在单个垂直面板中的2个独立面板上。然后您只需
setVisible(true)
一个面板,而
setVisible(false)
另一个面板。。。您可以使用客户机处理程序或服务器处理程序来实现这一点,这是一个选择问题,但如果按钮没有其他功能,则客户机处理程序会更快、更简单。 “父面板”(垂直或水平)将确保每个面板显示在显示器的同一位置

你应该很容易在这个论坛上找到一些明确的例子