StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Business Objects and Data Access (How do I?)
»
Building SQL Dynamic WHERE Condition???
Building SQL Dynamic WHERE Condition???
Post Reply
Like
1
Building SQL Dynamic WHERE Condition???
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Edhy Rijo
E
Edhy Rijo
posted 8 Years Ago
ANSWER
Topic Details
Share Topic
E
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
Hi all,
I normally will build a MS-SQL Stored Procedure to get the data from all my reports, but in this case, I am working on a project that would have a gazillion filter conditions. We are re-writing an application from a Visual FoxPro and the way this was handle was by using the old good VFP macro expansion technique by testing each conditions in the query or filter form and building the "WHERE - filter" string.
I can easily replicate that kind of logic using and SqlCommand object, but was wondering if there was a much better way to build this dynamic query? I have not looking at the Browser Dialog source but I would imagine it uses a more generic object oriented approach to build the query and grab the data.
As always any suggestion is greatly appreciated.
Thanks!!!
Edhy Rijo
Reply
Like
1
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Building SQL Dynamic WHERE Condition???
Edhy Rijo
-
8 Years Ago
Hi Edhy. Remember the BrowseDialog ended up having only an AND...
Ivan George Borges
-
8 Years Ago
Post Reply
Like
1
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search