Have you ever had trouble figuring-out what the SOM expression is for a particular object which you’re trying to address within your script?
If so, here’s a tip that might come in handy the next time you’re stumped:
With the input focus (the “I” beam) set within the event you’re scripting on the Script Editor palette in Designer, hold-down the Control key and move your mouse over the canvas. Notice that as you hover over objects, the mouse pointer switches to a “V” cursor. If you click, the full SOM expression for the object you clicked will be automatically inserted into your script. But that’s not all! The generated SOM expression will be automatically formatted to work with your script’s language settings:
If you haven’t named the “page 1″ subform and you pick an object on it, you’ll get the following code if your script’s language is FormCalc: