lazy init used for table def's?

2 views
Skip to first unread message

DaveBurns

unread,
Oct 16, 2009, 11:23:14 AM10/16/09
to DataMgr
Referring to this doc page:

http://www.bryantwebconsulting.com/docs/datamgr/view-datamgr-s-table-definitions.cfm

If I do the following in my code:

<cfdump var="#Application.DataMgr.getTableData()#">

without any previous DataMgr usage, I get an empty structure. If I get
a record from table A first, the structure contains just info for
table A. If A and B first then it contains info for A and B. And so
on. Seems like DataMgr uses lazy initialization for its table data. Is
this doc'ed anywhere I should have seen? You may want to add a note to
this page.

The strange part was when I had a prior query for table A then asked
it for its data on table B. It dumped out its info for table A. Seems
like passing in a name to filter results doesn't work as per the doc.

Thanks,
Dave

Steve Bryant

unread,
Oct 19, 2009, 11:22:15 PM10/19/09
to dat...@googlegroups.com
Dave,

It looks like you found a couple of bugs.

1) The documentation should have indicated that the method only
returns information about tables that DataMgr has used (or been told
about). That has been fixed now.

2) DataMgr's table limitation was set up to work (incorrectly) so that
it would return the table given only if it already knew about it. I
have fixed that locally and it will be in the next build released.

Sorry for the trouble on both counts,

Steve

Reply all
Reply to author
Forward
0 new messages