數字編輯框確實支持<< sib但不支持<< prev同胞在此腳本中,在數字編輯框中的最後兩個函數中改變了我正在使用該值以及它的左或右兄弟計算一個新值。當我改變左框時,我可以成功使用<< sib找到正確的(下一個)兄弟姐妹。當我改變右邊盒子,我無法使用<< prev同胞來到它之前的(左)兄弟姐妹。
數字編輯框確實支持<< sib但不支持<< prev同胞根據我的JMP 14日誌。運行附加腳本並更改編號
用於測試自己的盒子。
我使用正確的功能嗎?如果是,有辦法解決這個遺漏?
dt = New Table( "untitled 1",
Add Rows( 0 ),
Compress File When Saved( 1 ),
New Table Variable( "First", 1.5 ),
New Table Variable( "Second", 2.4 ),
New Table Variable( "Third", 0 ),
New Column( "Column 1",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [] )
)
);
LB = lineup box(NCol(4),
Text box("Factor"),
Text box("Total"),
Text box("Metrology"),
Text box("Process"),
);
TableVariables = dt << Get Table Variable Names();
New window("Variation",
v list box(
LB = lineup box(NCol(4),
Text box("Factor"),
Text box("Total"),
Text box("Metrology"),
Text box("Process"),
),
Button Box( "Write Total",ApplyTotalButton)
)
);
for(i=1,i<=N items(TableVariables),i++,
LB << Append(text Box(TableVariables[i]));
LB << Append(number edit Box(num(dt<<GET table="" variable=""></GET>
Re:數字編輯框確實支持<< sib但不支持<< prev同胞通常當我想引用一組對象時,我會添加一個容器,例如,創建一個rowbox,然後是語法
((this << parent) << sib) << sib
就夠了
但是,對於您的示例,我將使用StringColBox的錶框,兩個NumColEditBox和一個NumColBox。如果你想引用單元格,Set Function會返回兩個變量this,因此它引用NumColEditBox和單元格。
但是,通過命名您的盒子,您可以使用單個功能,
Names Default to Here(1);
dt = New Table( "untitled 1",
Add Rows( 0 ),
Compress File When Saved( 1 ),
New Table Variable( "First", 1.5 ),
New Table Variable( "Second", 2.4 ),
New Table Variable( "Third", 0 ),
New Column( "Column 1",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [] )
)
);
TableVariables = dt << Get Table Variable Names();
nvar = nitems(TableVariables);
totval = {};
metval = AsList(J(nvar,1,0));
procval = metval;
For(i=1, i<=nvar, i++,
InsertInto(totval, num(dt<< get Table Variable(TableVAriables[i])))
);
TB = TableBox(
vcol = StringColBox("Factor",TableVariables),
tcol = NumberColEditBox("Total",totval),
mcol = NumberColEditBox("Metrology", metval),
pcol = NumberColBox("Process", procval)
);
vcol << set row borders(0);
pcol << set row borders(0);
New window("Variation",
v list box(
TB,
Button Box( "Write Total",ApplyTotalButton)
)
);
recalcFunction = Function( {this, which},
//When value in this Number Edit Box is changed, get the value from this box and the one to the right and add the result and put it in the text box on the far right.
RMSE = tcol <<GET as="" matrix=""></GET>
Re:數字編輯框確實支持<< sib但不支持<< prev同胞您可以獲取該對象的父級,並可以確定父級的子級數,然後移動到您需要處理的子級。我實際上並沒有使用過這種方法,但我已經玩了很多,我認為你可以使它工作。Re:數字編輯框確實支持<< sib但不支持<< prev同胞願望清單項目創建,請upvote?
https://community.jmp.com/t5/JMP-Wish-List/Implement-Prev-Sib-for-Displays/idi-p/82669#M394
Re:數字編輯框確實支持<< sib但不支持<< prev同胞知道如何(輕鬆)解決這個問題嗎?
我想一個Xpath的解決方案可以工作,然後使用這個<<獲取文本來找出哪個數字編輯框是已更改的編輯框。雖然重複的值不會很強大:(
另一個選擇是創建一個按鈕,它將貫穿所有框並進行數學運算,但這是一個醜陋的解決方案。Re:數字編輯框確實支持<< sib但不支持<< prev同胞顯示器不支持Prev Sib。 它僅適用於樹節點。 如果它適用於顯示器會很好。 我建議你把請求輸入JMP願望清單。