Dear community
I think my problem is a simple one, but all the same I could use some help. I am using the profiler platform with the added simulator to create a monte carlo simulation of a response with several factors:
MyProfiler = Profiler(
Y( :Response)
);
MyProfiler << Simulator(
Factors(
Factor 1 << Random(Normal()),
Factor 2 << Random(Normal())
);
I want to add some functionality to the ‘Make Table’ button under the ‘Simulate to Table’ outline box in the report window. I do that by adding a script. What I want to do is name the table resulting from the ‘Make Table’ button and perform a series of operations on this table:
Report(MyProfiler)[ButtonBox(2)] << Set Script(
MySimTable = Current Data Table();
//Perform actions on MySimTable
);
The problem is that the ‘Current Data Table' command is executed before any other actions when pressing the button. This means that the current table is not the table generated by pressing the ‘Make Table’ button. So here is my question: Is there a way to perform the ‘build in’ button function before running the ‘Current Data Table’ command? Any solutions giving me a reference to the generated table automatically will be much appreciated.
Thank you