How to write into JSL script to convert model comparison report into data tableI have two questions to ask as follow:
1) How to write in JSL script if I want to convert model comparison report below (ModelComparison.jpg) into data table?
2) How to write in JSL script if I want to save column of the first two models in the model comparison report to get the predicted values?
Thank you.
Re: How to write into JSL script to convert model comparison report into data tableThe display tree diagram uses absolute indexes from the root of the tree to refer to an object. We do not recommend using such references as they are likely to break if the report layer organization changes for any reason. My example uses a relative index. It goes to the nearest outline box and then references the first table box within that outline. It should work.
Re: How to write into JSL script to convert model comparison report into data tableHi Mark,
Thank you for your suggestion. The script can worked if I applied on simple tree structure for example on distribution. However, if you refer to attached tree structure for the model comparison, the script does not work. Based on the tree structure, I have altered the script as shown below but it failed to generate the table:
Report(myts)[outlinebox(4)][Tablebox(5)]<
Re: How to write into JSL script to convert model comparison report into data tableYou apparently have no scripting experience so I will suggest the simplest approach I can think of.
- Click the red triangle at the top and select Save script > To Script Window. Insert platform = at the start of the script. Add Report( platform )["Model Comparison"][TableBox(1)] << Make Into Data Table at the end of the script.
- I'm not sure how to do this part!