Try a Go To Field or Go to Object script step to go to field or object at the top of the window. If Go to Object you need a matching name in the script step to the name you give the object in the Data Inspector
Just tried your suggestion but am getting the same behavior. I have a small header and a body. The body just contains one large field. I gave the graphic in the header a name, as well as the document field itself, and tried the go to object step on each of them. No luck. Also tried a go to field to the document field. No luck there, either. One thing I noticed is that all single page documents are scrolled to the bottom, while all 2-page documents are scrolled to the top of the first page.
This is odd, Every time I use this method, the window is always scrolled Home automatically. Might some field specified as the first field in your layout's tab order be located near the bottom?
I just checked, and there are no fields in the tab order (and only one field on the layout).
Try placing a button in the header, make it transparent. Give the button a name in the inspector, set it in the tab order as 1, and try Go to Object-with the name of the button. You can play around with its appearance in the inspector so it doesn't show up. You could also make the text in the header a button and do the same.
Just tried those steps and still no luck. One thing to note is that the header is always correctly at the top; it's the document field that is scrolled to the bottom (the top bit is scrolled beneath the header). I also tried going to the document field via go to object and got to field (select/perform), and tried various permutations of tab order between the document field and the header button. No change in behavior at all. I have also tried documents that are longer than 2 pages. Every multi-page document works correctly; it's just the single page documents that are scrolled to the end.
Try Go to Record/request/page [First]
Thanks, Phil, but that didn't fix it. Not sure if any of this is relevant, but on the layout the document field is set as follows:
Field Entry: Browse Mode
Go to next object using: Tab, Return, Enter
Format: Reduce image to fit
Maintain original proportions: checked
Alignment: Center, Top
Optimize for: Interactive content
Start playback automatically: unchecked
What does that have to do with scrolling a window?
Is this an interactive container field and you need to scroll the document in the field? that's completely different from scrolling the window itself.
Ah. Very sorry for the misunderstanding. Yes, it's the interactive container that is scrolling (it fills the entire layout, so appears as if it's the window).