你好,
我正在尝试在应用程序构建器中构建应用程序。
我目前有两个模块。
第一个模块是一系列数字编辑框和列表,允许用户输入值并进行选择。
按下按钮后,输入和/或列表选择会更新数据表中的表变量,该表随后会更新列方程式。 数据表在后台打开,因此用户看不到它。
这个模块我工作得很好!
第二个模块旨在作为输出模块。 按下按钮,我希望该模块显示由于使用第一个模块而新计算的列值。 在第二个模块中,我有几个框(无论是数字编辑还是文本编辑,我不确定哪个正确用于此目的)以用户友好的方式进行布局,以显示计算所得的值。
我正在努力使框显示列值。 我尝试了以下方式,并且尝试将其设置为类似于输入模块的方式,但是没有成功。 目前,文本编辑方法是我正在使用的一种方法。
在这方面的任何帮助将不胜感激!
Button1Press=Function({this},
// This function is called when the button is pressed
name = this << Get Button Name;
dtA=Current Data Table();
dtA << Return(":Average Residence Time Lower Estimate(Min)[1]", Outputvar1);
);
TextEdit1Script=Function({obj},{text},
// This function is called when the Text Edit Box value is committed
text = obj << Get Text;
//"string" = obj << Get Text;
//:Average Residence Time Lower Estimate(Min)[1]=TextEdit1Script;
//Return(:Average Residence Time Lower Estimate(Min)[1]);
Outputvar1 = text;
print(Outputvar1)
);
//NumberEdit1Script=Function({this},{numEditValue},
// This function is called when the number edit value is committed
//numEditValue = this << Get;
//Outputvar1 = numEditValue;
//print(Outputvar1)
//:Average Residence Time Lower Estimate(Min)[1]=numEditValue;
//Return(:Average Residence Time Lower Estimate(Min)[1])=numEditValue;
//);
我的想法是使用dtA来调用在按下用户输入模块按钮后弹出的当前不可见表,因为输入模块已经使用了名称dt。
然后,我尝试使用return函数要求它返回我附加到新变量的特定列和行号,然后将其附加到文本编辑或数字编辑框,以尝试从中获取指定的值。列/行组合以在其中返回。
理想情况下,下图中的框将使用表中的值填充。
