May 10, 200421 yr I expected that I could use the "Insert Text" command in a script to insert text into a global field that appears in a Title Header. Is this not possible? It doesn't seem to be working for me. I intended to use that as a means of specifying varying data in the header so that I could use the same layout for multiple reports. Is there some other way this needs to be done? Decker
May 10, 200421 yr I'm a little lost. Ok, you want to individually specify what you want "Report Title" to be, but you don't want it attached to a record? Why not just make a global field and just type it in? Why script it?
May 10, 200421 yr You can't insert text into a field that's not accessible. Use the Set Field script step instead.
May 10, 200421 yr one way to also do it ( a little ugly) is to make white border, invisible and unchecked "Allow entry into field" fields in your layout. Your script can edit them, paste into them, etc, but they will remain invisible to the user.
May 10, 200421 yr The field must be accessible -- in List view, you won't even see a title header, and fields on a header part won't be accessible for Insert, Paste, etc, even by a Script. Which is why Set Field is so much better -- it doesn't care what layout you're on or if the field is even on it!
May 11, 200421 yr Author Scripting is more flexible--I can use the same layout for multiple reports and the scripts which find and sort the appropriate records can then insert the correct title, etc. via the global field. Per the other suggestions, I'll try Set Field instead. Thanks. decker
May 11, 200421 yr I have done this, but I usually report on different variables, so I normally just duplicate the layout. The advantage of scripting the layout changes is that you don't have to do multiple changes on multiple layouts when you decide to change one aspect of all the layouts. The dissadvantage is that it can be a little harder to keep track of, and it takes quite a bit more time up front.
Create an account or sign in to comment