Sometimes I need to close certain outline boxes within a report via JSL
Step 1 is easy if the report has a single "main box" that contains all of the outline boxes that need to be closed, but this isn't always the case.
For example, there is a script that produces a fit model. For this fit model, the "By:" function is used, which creates 3 separate "main boxes" that are entitled "Response Log(Production) Condition = A", "Response Log(Production) Condition = B", and "Response Log(Production) Condition = C".
So what I need is code to either do:
"Close any outline box within this report that is titled 'Effect Summary'"
something similar to (this doesn't work): ::repCurrent[Outline Box("Effect Summary")]<<Close(1);
"For each outline box in this report, check its name. If its name contains "Effect Summary", then close it.
And, as a second problem, could someone please explain the following behavior?
Code such as ::boxTemp <<Append((::dtMain <<Run Script("VarChart"))<<Report); does not always work when the report generated by a script does more than simply create a report (i.e., it makes a report, modifies the data table, and then reformats the report)
Special note "::boxTemp<<Append(::repCurrent);" does not work at all for some reason
Does anyone know why I need to use "Current Report"?
For my first problem, there will be multiple outline boxes within the report that need to be copied over, so it's not going to be as straight-forward as the example above. Is there anyway to take a save report object that was initialized via "Current Report()" and use the "Append" function on that report object without having to specify an object (i.e., how do I tell it to append the ENTIRE report object's contents, and not the specific contents of an outline box contained within a report).