Event Delegate Sequences

From Lianjapedia
Revision as of 08:43, 15 February 2016 by Yvonne.milne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Under construction

Opening an App

When an App is opened, the following events delegates are called:

  • init
  • visiblewhen, enabledwhen (runtime only)
  • load
  • datachanged, parentdatachanged, refresh
  • ready
  • resized (Canvas Section)
  • activate

Setup.prg

If setup.prg exists in the App's directory, setup.prg is run.

INIT

  • App
    • Page1
      • Section1 (If Section1 has a 'database' value, the database is opened, running dbc_opendata.prg if it exists in the database's directory. If a database is open and Section1 has a 'table' value, the table is opened, running the table open trigger if one exists.)
        • Field1
        • Field2
        • FieldN
      • Section2 (Database and/or Section2's table as for Section1 above)
        • Field1 ... FieldN
      • SectionN (Database and/or SectionN's table as for Section1 above)
        • Field1 ... FieldN
    • Page2
      • Section1 (Database and/or Section1's table as for Page 1, Section1 above)
        • Field1 ... FieldN
      • Section2 (Database and/or Section2's table as for Page 1, Section1 above)
        • Field1 ... FieldN
      • SectionN (Database and/or SectionN's table as for Page 1, Section1 above)
        • Field1 ... FieldN
    • PageN
      • Section1 (Database and/or Section1's table as for Page 1, Section1 above)
        • Field1 ... FieldN
      • Section2 (Database and/or Section2's table as for Page 1, Section1 above)
        • Field1 ... FieldN
      • SectionN (Database and/or SectionN's table as for Page 1, Section1 above)
        • Field1 ... FieldN

VISIBLE WHEN

The VISIBLE WHEN event is called for Pages and their Sections (runtime only). Called after the object's init; other objects' init may not yet have been called.

ENABLED WHEN

The ENABLED WHEN event is called for Pages and their Sections (runtime only). Called after the object's init and visiblewhen; other objects' init and visiblewhen may not yet have been called.

LOAD

  • App
    • Page1
      • Section1
        • Field1 ... FieldN
      • ...
      • SectionN
        • Field1 ... FieldN
    • ...
    • PageN
      • Section1
        • Field1 ... FieldN
      • ...
      • SectionN
        • Field1 ... FieldN

DATACHANGED

The DATACHANGED event is called for Form Sections and their Fields.

PARENTDATACHANGED

The PARENTDATACHANGED event is called for related child Sections.

REFRESH

The REFRESH event is called for Sections.

READY

  • App
    • Page1
      • Section1
        • Field1 ... FieldN
      • ...
      • SectionN
        • Field1 ... FieldN
    • ...
    • PageN
      • Section1
        • Field1 ... FieldN
      • ...
      • SectionN
        • Field1 ... FieldN

RESIZED

The RESIZED event is called for all Canvas Sections.

ACTIVATE

  • Page1 (or Page specified in the App 'Initial Page' attribute or first Page user has permission to read)
    • Section1
      • Field1 ... FieldN
    • ...
    • SectionN
      • Field1 ... FieldN