View
| Method Summary | |
public any |
init(any model)
Initializes the appropriate view |
public any |
combine_columns_in_list(any column_list, any human_name, any priority, [any delimiter])
Combines columns in the list into one column. Columns specified as hidden or null will remain undisplayed. |
public any |
edit([any message=""])
Outputs the model's form submitting to the update action. |
public any |
index([any message=""])
Outputs a list of all the rows in the table to which the model refers. |
public any |
list([any message=""], [any queryResult="#variables.model.find_all()#"])
Outputs a list of all the rows in the table to which the model refers. |
public any |
new([any message=""])
Outputs the model's form submitting to the create action. |
public any |
onChange([any field], [any code])
Sets the onchange event handler for a given field. |
public any |
onOutputOf([any column], [any run])
Given the name of a column and function to run, it will run that function instead of outputting the column's actual value. The function should not require any arguments. A structure representing the current row will be injected into the function for your use. |
public any |
set_field_type(String whichFieldName, String newFieldType, [any values="#arrayNew(1)#"], [any displayValues="#arrayNew(1)#"], [any yearRange="1900,#year(now())+10#"])
|
public any |
set_human_name(String whichFieldName, String newHumanName)
|
public any |
set_priority(String whichFieldName, numeric newPriority)
|
public any |
set_show_list_link_on_form([boolean value])
|
public any |
set_title_edit([string value])
|
public any |
set_title_list([string value])
|
public any |
set_title_new([string value])
|
public any |
setModelField([any fieldname], [any value])
|
public any |
setShowActionsOnList([boolean value])
|
public any |
show()
Shows a record |
public any |
underTitleAddText()
|
public any |
underTitleEditText()
|
public any |
underTitleFormText()
|
public any |
underTitleListText()
|
| Method Detail |
public any combine_columns_in_list(any column_list, any human_name, any priority, [any delimiter])
any column_list - A comma delimited list of the column names you want to combine.any human_name - The display name of the new column.any priority - A number representing what order the new column should be shown in the list. Ties are resolved by making combined columns display first.[any delimiter]public any edit([any message=""])
[any message=""] - A message to display.public any index([any message=""])
[any message=""] - A message to display.public any init(any model)
any model - The model object that this view is referring topublic any list([any message=""], [any queryResult="#variables.model.find_all()#"])
[any message=""] - A message to display.[any queryResult="#variables.model.find_all()#"]public any new([any message=""])
[any message=""] - A message to display.public any onChange([any field], [any code])
[any field] - The name of the field for which you want to set the onchange event handle.[any code]public any onOutputOf([any column], [any run])
[any column][any run]public any set_field_type(String whichFieldName, String newFieldType, [any values="#arrayNew(1)#"], [any displayValues="#arrayNew(1)#"], [any yearRange="1900,#year(now())+10#"])
String whichFieldName - The field whose type you want to change.String newFieldType - The type the field should be.[any values="#arrayNew(1)#"] - select' or multipleselect, radiolist, or checkboxlist[any displayValues="#arrayNew(1)#"] - select' or multipleselect, radiolist, or checkboxlist, to be shown in the options/beside the checkbox or radio button. It should match the values.[any yearRange="1900,#year(now())+10#"] - A range of years if this is a date, datetime, or monthyeardate. Should be in the form 'minYear,maxYear'. The range is inclusive.public any set_human_name(String whichFieldName, String newHumanName)
String whichFieldNameString newHumanNamepublic any set_priority(String whichFieldName, numeric newPriority)
String whichFieldNamenumeric newPrioritypublic any set_show_list_link_on_form([boolean value])
[boolean value] - Should the link to the list show below the add and edit forms?public any set_title_edit([string value])
[string value] - The title that should show above the form for editspublic any set_title_list([string value])
[string value] - The title that should show above the list tablepublic any set_title_new([string value])
[string value] - The title that should show above the form for new recordspublic any setModelField([any fieldname], [any value])
[any fieldname][any value]public any setShowActionsOnList([boolean value])
[boolean value] - Should the list show actions for delete and edit?public any show()
public any underTitleAddText()
public any underTitleEditText()
public any underTitleFormText()
public any underTitleListText()