Ticket #222 (closed defect: fixed)
ModelGlue.GenericList Should return empty recordset
| Reported by: | imarichardson | Owned by: | joe.rinehart |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Version: | 2.0.304 | Severity: | major |
| Keywords: | GenericList | Cc: |
Description
I've an application I'm running where I use a Generic List to output the data from a table. Consider the following: <message name="modelglue.GenericList?">
<argument name="object" value="tbl_users" /> <argument name="queryName" value="qryUsers" /> <argument name="criteria" value="userID" />
</message>
Now if for some reason userID is blank or not passed in the value of qryUsers.Recordcount should be zero in the viewstate (the recordset should be empty because I am running "SELECT * FROM tbl_users WHERE userID = ). Unfortunately, MG is returning what looks like either the complete recordset instead of an empty one. This can really be an issue if you are expecting a "return the right query" or "nothing at all" scenario.
Can this be fixed? Thanks.
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)