KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Form Page Change with Quick Report Subform Area
PRODUCT: 4D | VERSION: 19 | PLATFORM: Mac & Win
Published On: December 20, 2021

During form page changes or dialog changes, the form objects inside of the subform receive an unload event. This in turn may cause some of the form object contents to be lost. Since Quick Report Areas are now embedded in a subform (not a plugin anymore), the report will be lost during the page/dialog change event and a new blank report area will be loaded when you return.

To prevent your report area from being lost during page changes, you can:

  • Save your report when changing pages and load it back into the area on the needed pages.

  • Put your Quick Report subform area on page 0 and have it hide or show on the needed page with OBJECT SET VISIBLE

  • Example:


    //Form Method
    :(Form event code=On Page Change)
      If(FORM Get current page=1)
        OBJECT SET VISIBLE(*;"QRArea";True)
      Else
        OBJECT SET VISIBLE(*;"QRArea";False)
      End if