Hi there, I'm trying to come up with a script where the user inputs the column name in the dialog popup and the script
1. subsets the rows with data under the column name and
2. creates a new column that performs some simple formula with the column name that was input.
I do not know how to do it so I hardcoded the column name below. How can I replace the :XX01 such that no mater what the user enters at the dialog pop up it will work. I have columns XX01, XX02, XX03, and so on...
popup = Dialog(
Title( "Summary Table" ),
" ",
" Enter Softbin XX:",
Lineup( 6,
"Softbin ID ",
Soft_Bin = editnumber( 01 )
),
Button( "Ok" ),
Button( "Cancel" )
);
masterdt << select where (Is Missing(:XX01));
masterdt << Invert Row Selection;
sbdt = masterdt << Subset(( Selected Rows ), Output Table Name("Selected Softbin Data"));
sbdt << New Column( "Bin%", Numeric, Continuous, Format("Percent",12,2), Formula( :XX01 / :LOT_SORTED_DIES ) );