The documentation from version 39.5.17 of PLANTA project can be found in the new PLANTA Online Help.

Customizing Panel

Access path
  • Customizer Module Customizer --> Module

Information

  • In order to create a panel, at least two modules are required.

Procedure

  • Enter the number of the module which is to be the main module in a panel in the MOD field and activate the Main module checkbox.
  • Insert a record for a submodule by right-clicking and selecting Insert Submodule.
  • Enter the number of the module which is to be inserted in the panel in the SUBMOD field.
    • If required, add other submodules the same way.
  • Define the parameters that define the display (Auto Hide), the size (module size) and the position of the submodule in the panel.
    • Here, position means not only the absolute position of the module (top, right, etc.) but also the position of the module with regard to other modules. It is defined via the following parameter:
  • Save.

Notes

  • If one of the submodules has submodules itself, they are not displayed in the current panel.
  • If one of the submodules is a main module in another panel (Main module parameter is activated), it is a submodule in the current panel anyway.

Load Submodules

Informations
  • Upon loading panels, the main module is loaded completely.
  • For performance reasons, submodules are only loaded partially (i.e. only data from DT405 Module).
  • Load the remaining module data the latest possible, i.e. not before the user focusses the module or upon opening the following function: on_initial_focus() or on_focus() via a Python macro.
  • Accessing the following module internas causes them to be loaded completely (this does not only apply to access via the on_load() method of the submodules but also to access from macros of other modules):

Tipps

  • If loading a panel (of the submodules of a panel) takes a lot of time, it is recommended to check via the on_load() method, whether the corresponding commands can be moved in the on_focus() or on_initial_focus() method.
  • Macro lines are always run upon loading a module/submodule. Hence, it is recommended to transform macro lines into a Python macro and check, whether the commands can be incorporated into the on_focus() or on_initial_focus() method.
  • Via the is_stub() Python method it can be checked, whether a submodule has already been loaded completely.
    • The method can e.g. be used in order to determine that module internas of a submodule are only accessed if the submodule has already been loaded completely.

Details

  • The debug logfile (with LOG_LEVEL = 15) contains useful information on loading panels/submodules, e.g.:
    • Information on which submodules have been loaded completely and why:
      • DEBUG: Rebuilding stub module 0099D6 as a full module (Reason: Apply module variant by id))
      • DEBUG: Rebuilding stub module 009B98 as a full module (Reason: Get data area pr_id)
    • Information on how many submodules of a panel were loaded completely:
      • DEBUG: 3 out of 17 stub modules have been rebuilt as full sub modules while loading main module 0099JT
    • Here, "stub" means the partial loading of the submodules as described above.

         PLANTA project









 
  • Suche in Topic-Namen

  • Suche in Topic-Inhalten
This site is powered by the TWiki collaboration platform Powered by Perl