KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: 4D Write Pro controlling Page View Programmatically
PRODUCT: 4D Write Pro | VERSION: 17 | PLATFORM: Mac & Win
Published On: August 23, 2019

4D Write Pro has three different view modes: embedded, draft, and page. The typical way to control the view is to set the 4D Write Pro area's property or have the user change it through the UI from the toolbars or the contextual menu.

It is also possible to change the view mode programatically using the standard actions with the INVOKE ACTION command.
The command is applied to the currently active form object.

//Set to Page mode
INVOKE ACTION("pageMode?value=page")

//Set to Embedded mode
INVOKE ACTION("pageMode?value=embedded")

//Set to Draft mode
INVOKE ACTION("pageMode?value=draft")