Variable Containing Current Layout Name
I want to have a single print button to print any layout without having to have a separate script for each report in which I manually go to that layout. I'd like to create a global variable which changes its value to the name of the current layout whenever that layout is opened. I can create a script trigger for onLayoutEnter easy enough but I don't know how to set the variable to the current layout's name. Can you help with this? Am I on the right track?