Creo que es necesario eliminar la coma que aparece al final de la línea 65.
);
Tengo una pregunta rápida de seguimiento. Cuando ejecuto el script que incluye mi script SQL (cuando selecciono "Haga clic aquí cuando haya terminado"), esa ventana agrega una lista de obleas. Eso funciona como se esperaba, sin embargo, parece que se detiene justo antes de gbirl << delete;
hay = New Window( "Test Database Tools",
V List Box(
V List Box(
Text Box( "Welcome to the Test Database",
<< Set Font Size( 20 ),
<< Set Width( 1920 ),
<< Justify Text( "Center" )
),
Spacer Box(
Size( 10, 15 )
),
H List Box(
bb = Border Box( Left( 15 ), Right( 10 ), Top( 10 ), Bottom( 10 ), Sides( 15 ),
V List Box(
lineup1 = Lineup Box(
N Col( 1 ),
V List Box(
lineup2 = Lineup Box(
N Col( 1 ),
Text Box( "Select Desired Test Dates",
<< Set Font Size( 20 ),
<< Justify Text( "Center" )
),
Spacer Box(
Size( 5, 15 )
),
H Splitter Box(
Border Box( Left( 15 ), Right( 10 ), Top( 10 ), Bottom( 10 ), Sides( 15 ), StartDate = Calendar Box(
<< Set Function(
Function(
{f1},
sqlStartA = StartDate << Get Date()
)
)
)
),
Border Box( Left( 15 ), Right( 10 ), Top( 10 ), Bottom( 10 ), Sides( 15 ),
EndDate = Calendar Box(
<< Set Function(
Function(
{f2},
sqlendA = EndDate << Get Date()
)
)
)
)
)
)
),
Spacer Box(
Size( 5, 15 )
),
bb1 = Button Box( "Click Here When Finished",
sqlstart = Format( sqlstartA, "yyyy-mm-dd" );
sqlend = Format( sqlendA, "yyyy-mm-dd" );
Show( sqlstart, sqlend );
lineup1 << Append(
V List Box(
loaddata = Button Box( "Load Test Data",
doListChoice; // converts single lot to multiple for purpoose of sql data pull
doLoadWafer; // sql scipt to pull in test data
),
Spacer Box(
Size( 5, 15)
),
Panel Box( "Select Wafer(s)",
doLotList,
Lotlistbox = Check Box( LotList, Beep() ), // lot list based on date selection
LotListBox << Get Selected;
)
)
),
// gbirl << Append( gb );
gbirl << delete; // Stops right before it gets to this step in the code (assumption)
// dt = open( "$SAMPLE_DATA/big class.jmp",invisible); // Your inserted script
// Replaced your Bivariate with my Graph Plot
gbirl = V List Box(
::dt_testdata_ss << Graph Builder(
Show Control Panel( 0 ),
Show Legend( 0 ),
Variables(
X( :FREQ_GHz ),
Y( :IRL ),
Group X( :wafer_number ),
Overlay( :RowCol )
),
Elements( Smoother( X, Y, Legend( 11 ) ) ),
Local Data Filter(
Add Filter(
columns( :wafer_number, :trmode, :channel ),
Display( :channel, Check Box Display )
)
)
)
);
gbirlvlb << append(gbirl);
),
Spacer Box(
Size( 5, 15 )
)
)
)
),
// The below scripts are place holders for now
Tab Box(
"Graph Plot",
V Splitter Box(
H Splitter Box(
gbirlvlb = V List Box(
gbirl = Graph Box()
),
gbgain = Graph Box(),
gborl = Graph Box()
),
H Splitter Box(
gbnf = Graph Box(),
gbgaindb = Graph Box()
)
),
"Distributions",
Text Box( "Place"),
"Wafer Map",
Text Box( "Place" )
)
)
)
)
);Lo que normalmente hago cuando intento una actualización como la que usted desea hacer es simplemente eliminar el objeto que voy a reemplazar, luego crear el nuevo objeto y agregarlo a la ubicación donde eliminó el objeto original. He modificado su script para ilustrar este método. Solo modifiqué uno de tus cuadros de gráfico, pero creo que entenderás la idea. Simplemente ejecute el script y luego haga clic en el botón "Haga clic aquí cuando termine"
Names Default to Here( 1 );
Close All( Data Tables, No Save );
Close All( Reports );
Clear Log();
Close All( journals, no save );
Clear Symbols();
/* -----------------------------------------------------------*/
/* Initializes Date Selection */
/* -----------------------------------------------------------*/
sqlstartA = Today();
sqlendA = Today();
sqlstart = Format( sqlstartA, "yyyy-mm-dd" );
sqlend = Format( sqlendA, "yyyy-mm-dd" );
/************************************************************************************************************************************************/
/* */
/* ---------------------------------------------------------[START TEST DATA ANALYSIS] ---------------------------------------------------- */
/* */
/************************************************************************************************************************************************/
hay = New Window( "Test Database Tools",
V List Box(
V List Box(
Text Box( "Welcome to the Test Database",
<< Set Font Size( 20 ),
<< Set Width( 1920 ),
<< Justify Text( "Center" )
),
Spacer Box(
Size( 10, 15 )
),
H List Box(
bb = Border Box( Left( 15 ), Right( 10 ), Top( 10 ), Bottom( 10 ), Sides( 15 ),
V List Box(
lineup1 = Lineup Box(
N Col( 1 ),
V List Box(
lineup2 = Lineup Box(
N Col( 1 ),
Text Box( "Select Desired Test Dates",
<< Set Font Size( 20 ),
<< Justify Text( "Center" )
),
Spacer Box(
Size( 5, 15 )
),
H Splitter Box(
Border Box( Left( 15 ), Right( 10 ), Top( 10 ), Bottom( 10 ), Sides( 15 ), StartDate = Calendar Box(
<< Set Function(
Function(
{f1},
sqlStartA = StartDate << Get Date()
)
)
)
),
Border Box( Left( 15 ), Right( 10 ), Top( 10 ), Bottom( 10 ), Sides( 15 ),
EndDate = Calendar Box(
<< Set Function(
Function(
{f2},
sqlendA = EndDate << Get Date()
)
)
)
)
)
)
),
Spacer Box(
Size( 5, 15 )
),
bb1 = Button Box( "Click Here When Finished",
sqlstart = Format( sqlstartA, "yyyy-mm-dd" );
sqlend = Format( sqlendA, "yyyy-mm-dd" );
Show( sqlstart, sqlend );
/*lineup1 << Append(
V List Box(
loaddata = Button Box( "Load Test Data",
doListChoice; // converts single lot to multiple for purpoose of sql data pull
doLoadWafer; // sql scipt to pull in test data
),
Spacer Box(
Size( 5, 15)
),
Panel Box( "Select Wafer(s)",
doLotList,
Lotlistbox = Check Box( LotList, Beep() ), // lot list based on date selection
LotListBox << Get Selected;
)
)
),
gbirl << Append( gb );*/
dt = open( "$SAMPLE_DATA/big class.jmp",invisible);
gbirl << delete;
gbirl = vlistbox(dt<<BIVARIATE></BIVARIATE>