Perspective Print Issue

Interesting error here.
When I go to print using system.perspective.print()
This works:
image
But this does not:
image
Both of these are a script event being executed by a button using "onActionPerformed"
When I only have one print statement, I get outputs to the browser console, such as this:


But when I add any other print statement, nothing happens, and there are no browser messages at all.

Any idea what is going on?

Most likely an indentation error. Did you use a tab or spaces on the second line to indent it?

3 Likes

Yeah, I just checked that and it turns out that was the issue. Simple mistake, but thanks for helping me find it.

Indentation error

The red squiggle under 's' is the clue.

5 Likes