Skip to content

Instantly share code, notes, and snippets.

@mhenke
Created May 29, 2013 00:24
Show Gist options
  • Save mhenke/5667147 to your computer and use it in GitHub Desktop.
Save mhenke/5667147 to your computer and use it in GitHub Desktop.
datatables action page
<!--- sets filename as session variable --->
<cfset filename = evaluate("replace(GetFileFromPath(GetCurrentTemplatePath()),'_action.cfm','')") />
<cfset columnOrder = "name,title,phone,description">
<cfset columnCount = "c.name" />
<cfoutput>
<cfsavecontent variable="mycolumnstruct.phone">
ISNULL(RTRIM(N.first),'')+' '+CASE WHEN N.MIDDLE IS NOT NULL THEN ISNULL(RTRIM(N.middle),'')+' ' ELSE ''END +ISNULL(RTRIM(N.last),'')
</cfsavecontent>
<cfsavecontent variable="mycolumnstruct.title">
isnull(n.title,'')
</cfsavecontent>
<cfsavecontent variable="mycolumnstruct.name">
C.Name
</cfsavecontent>
<cfsavecontent variable="mycolumnstruct.description">
Z2.Description
</cfsavecontent>
<cfsavecontent variable="mycolumnstruct.icons">
'<a class="editlink" href="BoardDetailUpdate.cfm?im_id='+convert(varchar(50),I.im_id)+'&proc=add&levels=#levels#&bm_id=#bm_id#&bh_id=#bh_id#"><i class="icon-pencil"></i> '+'Add '+'</a>'
</cfsavecontent>
</cfoutput>
<!--- generic processing (no need to touch)--->
<cfinclude template="datatables_processing.cfm" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment