Over the years I’ve used a variety of methods to call things like PageDown from within my scripts, some more pretty than others.
You would think that in the Init() you can just call controller.PageDown() and all is good in the world.
import System; import System.Windows; import System.Windows.Controls; import MForms; package MForms.JScript { class showPageDown { var gDebug = null; var gController = null; var gContent = null; public function Init(element: Object, args: Object, controller : Object, debug : Object) { gDebug = debug; gController = controller; gContent = controller.RenderEngine.Content; gController.PageDown(); } } }
And if you test with the Script tool within Smart Office it isβ¦until you deploy it and then you get the “Duplicate request skipped” message in the logs π¦