Jump to content

Attribute Flags V8: Difference between revisions

From NusaATK
mNo edit summary
mNo edit summary
Line 10: Line 10:
| atkattribute || AF_PRIMARY| AF_OBLIGATORY || Part of the primary-key node, also makes it obligatory database-level processing flag
| atkattribute || AF_PRIMARY| AF_OBLIGATORY || Part of the primary-key node, also makes it obligatory database-level processing flag
|-
|-
| atkattribute || AF_AUTO_INCREMENT || Auto-increment field �database-level processing flag
| atkattribute || AF_AUTO_INCREMENT || Auto-increment field database-level processing flag
|-
|-
| atkattribute || AF_AUTOINCREMENT || #NAME?
| atkattribute || AF_AUTOINCREMENT || <nowiki>= AF_AUTO_INCREMENT</nowiki> Alias for AF_AUTO_INCREMENT (auto-increment flag is often mistyped) database-level processing flag
|-
|  ||  || Alias for AF_AUTO_INCREMENT (auto-increment flag is often mistyped) database-level processing flag
|-
|-
| atkattribute || AF_HIDE_LIST || Don't show in record lists hide flag
| atkattribute || AF_HIDE_LIST || Don't show in record lists hide flag
Line 30: Line 28:
| atkattribute || AF_FORCE_LOAD || Load always, even if not displayed anywhere
| atkattribute || AF_FORCE_LOAD || Load always, even if not displayed anywhere
|-
|-
| atkattribute || AF_HIDE || = AF_HIDE_EDIT | AF_HIDE_ADD | AF_HIDE_LIST | AF_HIDE_SEARCH | AF_HIDE_VIEW | AF_HIDE_SELECT
| atkattribute || AF_HIDE || <nowiki>= AF_HIDE_EDIT | AF_HIDE_ADD | AF_HIDE_LIST | AF_HIDE_SEARCH | AF_HIDE_VIEW | AF_HIDE_SELECT</nowiki> Attribute is totally hidden
|-
|  ||  || Attribute is totally hidden
|-
|-
| atkattribute || AF_READONLY_ADD || Readonly in add
| atkattribute || AF_READONLY_ADD || Readonly in add
Line 38: Line 34:
| atkattribute || AF_READONLY_EDIT || Readonly when edited
| atkattribute || AF_READONLY_EDIT || Readonly when edited
|-
|-
| atkattribute || AF_READONLY || = AF_READONLY_EDIT | AF_READONLY_ADD
| atkattribute || AF_READONLY || <nowiki>= AF_READONLY_EDIT | AF_READONLY_ADD</nowiki> Always readonly
|-
|  ||  || Always readonly
|-
|-
| atkattribute || AF_NO_LABEL || No label in forms
| atkattribute || AF_NO_LABEL || No label in forms
|-
|-
| atkattribute || AF_NOLABEL || #NAME?
| atkattribute || AF_NOLABEL || <nowiki>= AF_NO_LABEL</nowiki> No label in forms
|-
|  ||  || No label in forms
|-
|-
| atkattribute || AF_BLANK_LABEL || Blank label in forms
| atkattribute || AF_BLANK_LABEL || Blank label in forms
|-
|-
| atkattribute || AF_BLANKLABEL || #NAME?
| atkattribute || AF_BLANKLABEL || <nowiki>= AF_BLANK_LABEL</nowiki> Blank label in forms
|-
|  ||  || Blank label in forms
|-
|-
| atkattribute || AF_NO_SORT || Cannot be sorted in recordlists.
| atkattribute || AF_NO_SORT || Cannot be sorted in recordlists.
|-
|-
| atkattribute || AF_NOSORT || #NAME?
| atkattribute || AF_NOSORT || <nowiki>= AF_NO_SORT</nowiki> Cannot be sorted in recordlists
|-
|  ||  || Cannot be sorted in recordlists
|-
|-
| atkattribute || AF_SEARCHABLE || Attribute is searchable in list views
| atkattribute || AF_SEARCHABLE || Attribute is searchable in list views
Line 78: Line 66:
| atkattribute || AF_ML || Multi-language field
| atkattribute || AF_ML || Multi-language field
|-
|-
| atkattribute || AF_MULTILANGUAGE || #NAME?
| atkattribute || AF_MULTILANGUAGE || <nowiki>= AF_ML</nowiki> Multi-language field
|-
|  ||  || Multi-language field
|-
| atkattribute || AF_AUTOKEY || = AF_PRIMARY | AF_HIDE |AF_AUTOINCREMENT
|-
|-
| || || Shortcut for hidden auto-incremented primary key
| atkattribute || AF_AUTOKEY || = <nowiki>AF_PRIMARY | AF_HIDE |AF_AUTOINCREMENT</nowiki> Shortcut for hidden auto-incremented primary key
|-
|-
| atkboolattribute || AF_BOOL_OBLIGATORY || Make bool attribute obligatory (normal AF_OBLIGATORY flag is always removed).
| atkboolattribute || AF_BOOL_OBLIGATORY || Make bool attribute obligatory (normal AF_OBLIGATORY flag is always removed).
Line 126: Line 110:
| atkipattribute || AF_IP_STORENUMERIC  || Store as numeric value
| atkipattribute || AF_IP_STORENUMERIC  || Store as numeric value
|-
|-
| atkipattribute || AF_IP_SINGLEFIELD  || Single field xxx.xxx.xxx.xxx instead of deault 4 fields xxx xxx xxx xxx
| atkipattribute || AF_IP_SINGLEFIELD  || Single field xxx.xxx.xxx.xxx instead of default 4 fields xxx xxx xxx xxx
|-
|-
| atklistattribute || AF_NO_TRANSLATION  || Do not translate the options
| atklistattribute || AF_NO_TRANSLATION  || Do not translate the options
Line 136: Line 120:
| atklistattribute || AF_LIST_OBLIGATORY_NULL_ITEM  || Add a default null option to obligatory items
| atklistattribute || AF_LIST_OBLIGATORY_NULL_ITEM  || Add a default null option to obligatory items
|-
|-
| atklivetextpreview || AF_LIVETEXT_SHOWLABEL || #NAME?
| atklivetextpreview || AF_LIVETEXT_SHOWLABEL || <nowiki>= AF_DUMMY_SHOW_LABEL</nowiki> Label the preview
|-
|  ||  || Label the preview
|-
|-
| atklivetextpreview || AF_LIVETEXT_NL2BR  || �nl2br� the data before display
| atklivetextpreview || AF_LIVETEXT_NL2BR  || 'nl2br' the data before display
|-
|-
| atkmultiselectattribute || AF_NO_TOGGLELINKS  || ????
| atkmultiselectattribute || AF_NO_TOGGLELINKS  || ????
Line 152: Line 134:
| atkpasswordattribute || AF_PASSWORD_NO_VALIDATE  || Disables password check when editing password field
| atkpasswordattribute || AF_PASSWORD_NO_VALIDATE  || Disables password check when editing password field
|-
|-
| atkpasswordattribute || AF_PASSWORD_NO_ENCODE  || Don�t encode (with md5)
| atkpasswordattribute || AF_PASSWORD_NO_ENCODE  || Don't encode (with md5)
|-
|-
| atkradioattribute || AF_DISPLAY_VERT  || Displays the set of radio buttons vertically instead of horizontal default
| atkradioattribute || AF_DISPLAY_VERT  || Displays the set of radio buttons vertically instead of horizontal default

Revision as of 03:50, 18 December 2015

Attribute Flags ATK V8+

.
CLASS FLAG COMMENT
atkattribute AF_OBLIGATORY Value must be entered database-level processing flag
atkattribute AF_UNIQUE Value must be unique database-level processing flag
atkattribute AF_OBLIGATORY Part of the primary-key node, also makes it obligatory database-level processing flag
atkattribute AF_AUTO_INCREMENT Auto-increment field database-level processing flag
atkattribute AF_AUTOINCREMENT = AF_AUTO_INCREMENT Alias for AF_AUTO_INCREMENT (auto-increment flag is often mistyped) database-level processing flag
atkattribute AF_HIDE_LIST Don't show in record lists hide flag
atkattribute AF_HIDE_ADD Don't show on add pages hide flag
atkattribute AF_HIDE_EDIT Don't show on edit pages hide flag
atkattribute AF_HIDE_SELECT Don't show on select pages hide flag
atkattribute AF_HIDE_VIEW Don't show on view pages hide flag
atkattribute AF_HIDE_SEARCH Not searchable in extended search
atkattribute AF_FORCE_LOAD Load always, even if not displayed anywhere
atkattribute AF_HIDE = AF_HIDE_EDIT | AF_HIDE_ADD | AF_HIDE_LIST | AF_HIDE_SEARCH | AF_HIDE_VIEW | AF_HIDE_SELECT Attribute is totally hidden
atkattribute AF_READONLY_ADD Readonly in add
atkattribute AF_READONLY_EDIT Readonly when edited
atkattribute AF_READONLY = AF_READONLY_EDIT | AF_READONLY_ADD Always readonly
atkattribute AF_NO_LABEL No label in forms
atkattribute AF_NOLABEL = AF_NO_LABEL No label in forms
atkattribute AF_BLANK_LABEL Blank label in forms
atkattribute AF_BLANKLABEL = AF_BLANK_LABEL Blank label in forms
atkattribute AF_NO_SORT Cannot be sorted in recordlists.
atkattribute AF_NOSORT = AF_NO_SORT Cannot be sorted in recordlists
atkattribute AF_SEARCHABLE Attribute is searchable in list views
atkattribute AF_TOTAL The attribute will have a 'total' row in lists.
atkattribute AF_POPUP If supported, use pop-up window
atkattribute AF_CASCADE_DELETE Delete function is called when owning node is deleted
atkattribute AF_LARGE Will have a large amount of records (relation) Instead of showing a listbox with all the records it will show an add link to a select page
atkattribute AF_NO_FILTER Ignore filters when selecting records (relation)
atkattribute AF_PARENT Parent field for parent child relations (treeview)
atkattribute AF_NO_QUOTES No quotes are used when adding to database
atkattribute AF_ML Multi-language field
atkattribute AF_MULTILANGUAGE = AF_ML Multi-language field
atkattribute AF_AUTOKEY = AF_PRIMARY | AF_HIDE |AF_AUTOINCREMENT Shortcut for hidden auto-incremented primary key
atkboolattribute AF_BOOL_OBLIGATORY Make bool attribute obligatory (normal AF_OBLIGATORY flag is always removed).
atkboolattribute AF_BOOL_INLINE_LABEL Show an extra label right next to the checkbox. ATK searches the language file for the following variants <attribute>_label, <attribute> (next to the module/node prefixes). Don't forget to add the AF_BLANK_LABEL flag if you don't want to show the normal label.
atkboolattribute AF_BOOL_DISPLAY_CHECKBOX Display checkbox in view / list mode instead of yes or no.
atkdateattribute AF_DATE_STRING Date must be entered as an english date string (strtotime) Also checks edit format
atkdateattribute AF_DATE_EMPTYFIELD Fields have one empty option
atkdateattribute AF_DATE_NO_CALENDAR Do not append the popup calendar.
atkdateattribute AF_DATE_DISPLAY_DAY Show the day of the week in the display
atkdateattribute AF_DATE_EDIT_NO_DAY Don't display the day of the week in edit mode
atkdateattribute AF_CLEAR_TOUCH_BUTTONS Display buttons to clear and 'touch' date
atkdatetimeattribute AF_CLEAR_TOUCH_BUTTONS Display buttons to clear and 'touch' date
atkdummyattribute AF_DUMMY_SHOW_LABEL Make the attribute label its field. Use the flag AF_NOLABEL if you want to start at the beginning of the line.
atkdurationattribute AF_DURATION_STRING Date must be entered as an english date string (strtotime)
atkfileattribute AF_FILE_NO_UPLOAD Disable uploading of files
atkfileattribute AF_FILE_NO_SELECT Disable selecting of files
atkfileattribute AF_FILE_NO_DELETE Disable deleting of files
atkfileattribute AF_FILE_NO_AUTOPREVIEW Don't try to detect the file type (shows only filename)
atkfileattribute AF_FILE_PHYSICAL_DELETE Removed the files physically
atkfileattribute AF_FILE_POPUP AF_POPUP Show preview in popup instead of inline
atkipattribute AF_IP_ALLOW_WILDCARDS Allow *
atkipattribute AF_IP_STORENUMERIC Store as numeric value
atkipattribute AF_IP_SINGLEFIELD Single field xxx.xxx.xxx.xxx instead of default 4 fields xxx xxx xxx xxx
atklistattribute AF_NO_TRANSLATION Do not translate the options
atklistattribute AF_LIST_NO_OBLIGATORY_NULL_ITEM Do not add a default null option.
atklistattribute AF_LIST_NO_NULL_ITEM Do not add null option ever
atklistattribute AF_LIST_OBLIGATORY_NULL_ITEM Add a default null option to obligatory items
atklivetextpreview AF_LIVETEXT_SHOWLABEL = AF_DUMMY_SHOW_LABEL Label the preview
atklivetextpreview AF_LIVETEXT_NL2BR 'nl2br' the data before display
atkmultiselectattribute AF_NO_TOGGLELINKS ????
atkmultiselectattribute AF_CHECK_ALL ????
atkmultiselectattribute AF_LINKS_BOTTOM ????
atkpasswordattribute AF_PASSWORD_NOVALIDATE Disables password check when editing password field
atkpasswordattribute AF_PASSWORD_NO_VALIDATE Disables password check when editing password field
atkpasswordattribute AF_PASSWORD_NO_ENCODE Don't encode (with md5)
atkradioattribute AF_DISPLAY_VERT Displays the set of radio buttons vertically instead of horizontal default
atktabbedpane AF_TABBEDPANE_NO_AUTO_HIDE_LABEL Do not hide attribute label when it is single on the tab
atktimeattribute AF_TIME_SECONDS Display seconds after hours & minutes
atktimeattribute AF_CLEAR_TOUCH_BUTTONS Display butons to clear and 'touch' date
atkurlattribute AF_URL_ALLOWWRAP Add one space after each /, ? and & to fit a (long) url into
atkurlattribute AF_URL_STRIPHTTP Don't display http://. Link remains intact.
atkweekdayattribute AF_WEEKDAY_SMALL_EDIT ????