Git Product home page Git Product logo

coldfusion-datatables's Introduction

Author
	Bradley Moore
	orangexception.com
	@orangexception on Twitter

Description
	ColdFusion Server Methods for DataTables
	See http://www.datatables.net/usage/server-side for more details.

Language Support
	CF8 (withoutQueryOfQueries requires CF9+)

Usage
	Collection of request variables.
		ColdBox Implementation
			rc= Event.getCollection();
			stParameters= rc;

		Basic Implementation
			stParameters= url;
			structAppend( stParameters , form );

	DataTableSerivce Instantiation
		oDataTableService= createObject( "component" , "path.to.DataTableService" );

	Returns an object, which lets your controller determine how to use data.
		qExample= oModel.getQuery();
		oDataTableResult= oDataTableService.toObject( stParameters , qExample );

		if( request.bAJAX )
			sJSON= oDataTableResult.toJSON();

		else
			qExample= oDataTableResult.toQuery();

	Returns JSON string ready for consumption by DataTables.
		qExample= oModel.getQuery();
		sJSON= oDataTableService.toJSON( stParameters , qExample );

	Returns a query, which is useful for exporting results.
		qExample= oModel.getQuery();
		qExample= oDataTableService.toQuery( stParameters , qExample );

History
	2013.2.12
		Added components that rely on datasource to paginate. These should be used if your expected resultset is > 100 records.

	2011.1.19
		Fixed variable names in usage section
		Fixed Issue -> Original Query Meta Data versus Query of Query Meta Data
		Fixed Issue -> Data formatting is only applied to JSON

	2011.1.18
		Fixed Issue -> Invalid Column Names

	2011.1.17
		Foundation

coldfusion-datatables's People

Contributors

orangexception avatar

Forkers

bvatco

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.