John Farrar wrote:
John Farrar Wrote:

Here is my current list of functions... (we will see what final name the component has when I complete it... since it's not paid for work... will finish it later)

init()
getCurrentRow()
getRecordCount()
getColumnList()
isFirst()
isLast()
moveFirst()
moveLast()
moveNext()
movePrevious()
hasNext()
hasPrevious()

Plus you would have an attribute for every "field". These will be read only attributes. (The way CFC's work someone can manipulate the attribute currently, but the actual values are not exposed so they are not changing the internal recordset if they try by editing the object attributes.) The attributes will be the same names as the fieldnames.

Note... I was also thinking future oriented... we could add other functions. (sorting, addRecord, deleteRecord, sort, filter, columnType... and any others we dream up) The list above is good for a version 1.0 component though... you think?
I know I'm jumping into this a little late - but the above sounds pretty good to me.  I'm assume since the CFC is persisting data - can't be cached in a global scope (app, ses, or svr) - unless some internal caching system is devised (kinda like Ray's scope cache custom tag).  Although, you could just passed in a query already in a global scope and save a copy of the CFC in some persistant so you don't have create the object over and over.  I guess I'm writing before thinking again....ugh.

.pjf

-- 
Peter J. Farrell :: Maestro Publishing

blog	:: http://blog.maestropublishing.com
email	:: [EMAIL PROTECTED]
phone	:: 651-204-0513

 Laziness: Success is a journey, not a destination. Stop running.

--




----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]

Reply via email to