Questo componente aggiuntivo semplifica l'impostazione della precisione visibile dei dati mostrati in una tabella di dati.I dati non vengono alterati in alcun modo, l'unica cosa che cambia è la precisione visibile.Ad esempio, se una colonna contiene dati con 9 cifre di precisione, puoi rendere visibili 3 cifre di precisione, ma le 9 cifre originali sono ancora presenti.In questo contesto, "cifre di precisione" si riferisce al numero di cifre a destra della virgola decimale.
Non hai davvero bisogno di un componente aggiuntivo per farlo.Il formato di una colonna può essere modificato utilizzando le proprietà della colonna.Questo può essere fatto su più colonne contemporaneamente usando "Attributi standardizzati".Il video mostra come eseguire questa operazione utilizzando tutti e tre i metodi: 1) utilizzando il componente aggiuntivo, 2) impostando una proprietà della colonna e 3) utilizzando gli attributi standardizzati.
Considerando che questo può essere fatto facilmente utilizzando i comandi di menu standard di JMP, forse la cosa più utile di questo post è considerarlo come un'illustrazione dello scripting di JMP e di come scrivere una finestra di dialogo di colonna (selezionando colonne specifiche con cui fare qualcosa).Con questo in mente, ho incluso il codice JSL in questo post.
Se si desidera caricare il componente aggiuntivo, è sufficiente scaricare il file del componente aggiuntivo sul computer e utilizzare JMP per aprire il file.Quindi JMP chiederà se si desidera installare il componente aggiuntivo.
Ecco come appare l'interfaccia utente:

Ecco un breve video dimostrativo di tutti e tre i metodi sopra menzionati:
Ecco il codice JSL utilizzato dal componente aggiuntivo:
/*
Routine to set column precision on columns selected by a column dialog box.
Hyde Miller
JMP Systems Engineer
10/28/20
*/
Names Default to Here( 1 );
disclaimer = Expr(
New Window( "License Agreement",
Modal,
Outline Box( "License Agreement for Corrective Code or Additional Functionality",
H List Box(
Spacer Box( Size( 50, 50 ) ),
V Scroll Box(
Size( 500 ),
Flexible( 1 ),
Text Box(
"SAS INSTITUTE INC. IS PROVIDING YOU WITH THE COMPUTER SOFTWARE CODE INCLUDED WITH THIS AGREEMENT (\!"CODE\!") ON AN \!"AS IS\!" BASIS, AND AUTHORIZES YOU TO USE THE CODE SUBJECT TO THE TERMS HEREOF. BY USING THE CODE, YOU AGREE TO THESE TERMS. YOUR USE OF THE CODE IS AT YOUR OWN RISK. SAS INSTITUTE INC. MAKES NO REPRESENTATION OR WARRANTY, EXPRESS OR IMPLIED,
INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT AND TITLE, WITH RESPECT TO THE CODE.
The Code is intended to be used solely as part of a product (\!"Software\!") you currently have licensed from SAS or one of its subsidiaries or authorized agents (\!"SAS\!"). The Code is designed to either correct an error in the Software or to add functionality to the Software, but has not necessarily been tested. Accordingly, SAS makes no representation or warranty that the Code will operate error-free. SAS is under no obligation to maintain
or support the Code.
Neither SAS nor its licensors shall be liable to you or any third party for any general, special, direct, indirect, consequential, incidental or other damages whatsoever arising out of or related to your use or inability to use the Code, even if SAS has been advised of the possibility of such damages. Except as otherwise provided above, the Code is governed by the same agreement that governs the Software. If you do not have an existing agreement with SAS governing the Software, you may not use the Code. (SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. Other brand and product names are registered trademarks or trademarks of their respective companies.)
",
<<SET wrap=""></SET>