My Secret Life as a Spaghetti Coder
home | about | contact | privacy statement | getting started with cfrails
Model | View | Controller | Migration

cfrails.View
Component View

The base View class from which all other view cfcs should derive.


properties:
methods: combine_columns_in_list, edit, index, init, list, new, set_field_type, set_human_name, set_priority, set_show_list_link_on_form, set_title_edit, set_title_list, set_title_new, setModelField, setShowActionsOnList, show, underTitleAddText, underTitleEditText, underTitleFormText, underTitleListText


combine_columns_in_list
public combine_columns_in_list ( required column_list, required human_name, required priority, delimiter="
" )


Combines columns in the list into one column. Columns specified as hidden or null will remain undisplayed.

Output: suppressed
Parameters:
   column_list: any, required, column_list - A comma delimited list of the column names you want to combine.
   human_name: any, required, human_name - The display name of the new column.
   priority: any, required, priority - A number representing what order the new column should be shown in the list. Ties are resolved by making combined columns display first.
   delimiter: any, optional, delimiter - The separator to use between the old columns (for example, you may put <br/> to have each column on one line in a cell).

edit
edit ( message="" )

Outputs the model's form submitting to the update action.

Output: enabled
Parameters:
   message: any, optional, message - A message to display.

index
index ( message="" )

Outputs a list of all the rows in the table to which the model refers.

Output: enabled
Parameters:
   message: any, optional, message - A message to display.

init
public init ( required model )

Initializes the appropriate view

Output: suppressed
Parameters:
   model: any, required, model - The model object that this view is referring to

list
list ( message="", queryResult="[runtime expression]" )

Outputs a list of all the rows in the table to which the model refers.

Output: enabled
Parameters:
   message: any, optional, message - A message to display.
   queryResult: any, optional, queryResult

new
new ( message="" )

Outputs the model's form submitting to the create action.

Output: enabled
Parameters:
   message: any, optional, message - A message to display.

set_human_name
public set_human_name ( required String whichFieldName, required String newHumanName )

Output: suppressed
Parameters:
   whichFieldName: String, required, whichFieldName
   newHumanName: String, required, newHumanName

set_priority
public set_priority ( required String whichFieldName, required numeric newPriority )

Output: suppressed
Parameters:
   whichFieldName: String, required, whichFieldName
   newPriority: numeric, required, newPriority

set_show_list_link_on_form
public set_show_list_link_on_form ( boolean value )

Output: suppressed
Parameters:
   value: boolean, optional, value - Should the link to the list show below the add and edit forms?

set_title_edit
public set_title_edit ( string value )

Output: suppressed
Parameters:
   value: string, optional, value - The title that should show above the form for edits

set_title_list
public set_title_list ( string value )

Output: suppressed
Parameters:
   value: string, optional, value - The title that should show above the list table

set_title_new
public set_title_new ( string value )

Output: suppressed
Parameters:
   value: string, optional, value - The title that should show above the form for new records

setModelField
public setModelField ( fieldname, value )

Output: suppressed
Parameters:
   fieldname: any, optional, fieldname
   value: any, optional, value

setShowActionsOnList
public setShowActionsOnList ( boolean value )

Output: suppressed
Parameters:
   value: boolean, optional, value - Should the list show actions for delete and edit?

show
public show ( )

Shows a record

Output: enabled

underTitleAddText
public underTitleAddText ( )

Output: enabled

underTitleEditText
public underTitleEditText ( )

Output: enabled

underTitleFormText
public underTitleFormText ( )

Output: enabled

underTitleListText
public underTitleListText ( )

Output: enabled

Google
Web CodeOdor.com

Me
Picture of me