Skip to content
Snippets Groups Projects
Commit da6145d0 authored by Carsten  Rose's avatar Carsten Rose
Browse files

CODING.md: Update about form load.

parent 6479c9f7
No related branches found
No related tags found
No related merge requests found
......@@ -30,17 +30,23 @@ LOAD
* (Report)
* Process all <number>.[<number.>].sql statements
* Access code variables:
* Access variables:
* active/valid formname: [$this->store->setVar(SYSTEM_FORM, $formName, STORE_SYSTEM);]
* SIP: [$this->store->getVar('form', STORE_SIP)]
* All parameters from active SIP: [$this->store->getStore(STORE_SIP)]
* Check Contstants.php for known Store members:
* Check Contstants.php for known Store *members*.
* In QuickFormQuery.php the whole Form will be copied to `$this->formSpec` and depending on further processing, the
elements are available in `$this->feNative` and `$this->feAction`.
* The Form specificaton (table form) will be evaluated direct after loading.
* The FormElement specification will be evaluated later on in BuildForm*.php
elements are available in `$this->feSpecNative` and `$this->feSpecAction`.
* The Form specificaton (table form) will be evaluated direct after loading (no `dynamicUpdate`).
* The FormElement specification will be evaluated later in BuildForm*.php:
* $formSpec, and root elements of $feSpecAction & $feSpecNative will be read in QuickFormQuery.php.
* AbstractBuildForm.php/BuildFormBootstrap.php receives a copy during instantiating of that class.
* Processing of FormElements in AbstractBuildForm.php/BuildFormBootstrap.php typically do not change values,
especially there is no evaluation, in $feSpecAction & $feSpecNative.
* *Dynamic Update*: remember, an update(=Form load) is a complete new rendering of the form in that moment. All
values/elements/notes/debug are fresh with the latest form content.
* If a form is called without a SIP (form.permitNew='always'), than a SIP is created on the fly (as a
parameter in the form).
* Uniq SIP for mutliple tabs with r=0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment