My Secret Life as a Spaghetti Coder
home | about | contact | privacy statement
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

Topics
.NET (19)
AI/Machine Learning (14)
Answers To 100 Interview Questions (10)
Bioinformatics (2)
Business (1)
C and C++ (6)
cfrails (22)
ColdFusion (78)
Customer Relations (15)
Databases (3)
DRY (18)
DSLs (11)
Future Tech (5)
Games (5)
Groovy/Grails (8)
Hardware (1)
IDEs (9)
Java (38)
JavaScript (4)
Linux (2)
Lisp (1)
Mac OS (4)
Management (15)
MediaServerX (1)
Miscellany (76)
OOAD (37)
Productivity (11)
Programming (168)
Programming Quotables (9)
Rails (31)
Ruby (67)
Save Your Job (58)
scriptaGulous (4)
Software Development Process (23)
TDD (41)
TDDing xorblog (6)
Tools (5)
Web Development (8)
Windows (1)
With (1)
YAGNI (10)

Resources
Agile Manifesto & Principles
Principles Of OOD
ColdFusion
CFUnit
Ruby
Ruby on Rails
JUnit



RSS 2.0: Full Post | Short Blurb
Subscribe by email:

Delivered by FeedBurner