1,844
การแก้ไข
ไม่มีความย่อการแก้ไข |
|||
| บรรทัดที่ 123: | บรรทัดที่ 123: | ||
=== Other Form Definition Variables === | === Other Form Definition Variables === | ||
MASTER_firstonly | Other notable MASTER variables that can be set upon form definition include: | ||
* '''{{code|MASTER_firstonly}}''': A list of field names that are only active (editable) for a new entry, but inactive (not editable) when editing an old entry. | |||
* '''{{code|MASTER_skipseqs}}''': A list of field names to be skipped when the user is navigating through the form via {{key press|Tab}} or {{key press|Enter}}. | |||
* '''{{code|MASTER_skipcols}}''': A list of field names to be skipped when committing data to database. CuneiFox naturally skip fields that are meant for client-side viewing only (fields whose names are not present as database table columns). However, if the developer wants a field to be skipped despite the database having a similarly named column, do put the field name in this list. | |||
These 3 variables share the same format: | |||
<syntaxhighlight lang="python" line="1"> | |||
MASTER_firstonly = [str field_name0, str field_name1, ...] | |||
# Example from Accounting Journal's header form | |||
MASTER_firstonly = ["docno", "section_stid", "section_code", "section_name"] | |||
</syntaxhighlight> | |||
== Initiate == | == Initiate == | ||