//Assign Data Table + Delete Column Flag if it already there
dt=current data table();
//Create new window to get data from user
filter="";
nw=New Window("Flag Creation",
border box(top(50),bottom(100),left(50),right(100)),
H Center Box(Text Box("Input a single Conditon Bin to Flag")),
Text Box("Condition:"),fb=Text Edit Box("bbb"),
Button box("Run",
filter = fb << get text(),
dt<<New Column( "Flag",
Numeric,
"Continuous",
Format( "Best", 12 ),
Formula( filter))
)
);你好,
我是新的 JMP 用户。 我想用用户输入的值创建一个列。 但是,我在获取价值时遇到了麻烦。
有3个顾虑:
- 如何获取用户输入并通过它创建新列? 该脚本无法运行或返回任何数据。
- 我尝试在新窗口命令之外创建新列。 它会立即创建新列,而无需将任何用户输入输入其中。 我该如何解决? (因为我认为 JSL 将逐行执行脚本。
谢谢。