﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Issues  » QueryInformation Usage and Extension</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 17:21:36 GMT</lastBuildDate><ttl>20</ttl><item><title>QueryInformation Usage and Extension</title><link>http://forum.strataframe.net/FindPost15052.aspx</link><description>I'm trying to use QueryInformation Class to store some template queries.&lt;/P&gt;&lt;P&gt;I wonder WhereStatement class requires fields and values (these are array) but one &lt;FONT color=#2b91af size=2&gt;WhereStatementTypeOptions (Equals,Greaterthan,LessThan etc). Why ?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#2b91af&gt;Please explain the general process of building Where clause from WhereStatementCollection.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#2b91af&gt;And I need Dbcommand object build from the QueryInformationClass ? How can I get this ?&lt;/FONT&gt;</description><pubDate>Tue, 25 Mar 2008 01:42:10 GMT</pubDate><dc:creator>Ertan Deniz</dc:creator></item><item><title>RE: QueryInformation Usage and Extension</title><link>http://forum.strataframe.net/FindPost15153.aspx</link><description>Query Information class can be used for simple queries like implemented with BrowseDialog.&lt;/P&gt;&lt;P&gt;I've found the way to get Dbcommand for a QueryInformation class (For my simple queires).&lt;/P&gt;&lt;P&gt;SqlDataSourceItem.&lt;FONT size=2&gt;CreateDbCommand(query); &lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Tue, 25 Mar 2008 01:42:10 GMT</pubDate><dc:creator>Ertan Deniz</dc:creator></item><item><title>RE: QueryInformation Usage and Extension</title><link>http://forum.strataframe.net/FindPost15061.aspx</link><description>The QueryInformation class is not really designed for use outside of our controls.&amp;nbsp; This was created for us to create queries through the BrowseDialog (and a few other places) that did not rely on a specific database language.&amp;nbsp; This is then parsed and translated at the DAL.&amp;nbsp; I do not recommend using this class as a replacement for the DbCommand....at all!&amp;nbsp; This class is not going to support many necessary features such as stored procedure calls, views, UDFs, etc.&amp;nbsp; You should use the approach that we talked about a while back on another thread about creating a base BusinessLayer class and then overriding the FillDataTable, etc.&amp;nbsp;method to parse out the query and parms so that you can swap between different databases.&lt;/P&gt;&lt;P&gt;If you are trying to maniulate a BrowseDialog, then you would handle the Searching event and manipulate the WhereCollection.&amp;nbsp; There is a new sample of this in the 1.6.5 release in the Advanced BrowseDialog sample as well as in the help documentation: Application Framework -&amp;gt; UI Layer -&amp;gt; Controls -&amp;gt; Browse Dialog -&amp;gt; Events</description><pubDate>Thu, 20 Mar 2008 09:43:58 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>