CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 replace where in report

Print topic Send  topic

Author Message
rbaldwin

Posts: 172
Posted: 07/08/2009, 9:13 AM

vb.net

i'm coding something like this

dim where = "name = 'fred'"

DirectCast(Select_,TableCommand).Where = where

but i get error like
Unable to cast object of type 'IP360Dashboard_2.Data.SqlCommand' to type 'IP360Dashboard_2.Data.TableCommand'.

what am i doing wrong?
View profile  Send private message
rbaldwin

Posts: 172
Posted: 07/15/2009, 6:54 AM

As per support:

I believe that you're using SQL data source type for the form. In this case the entire query is stored in SqlQuery property. You cannot access the Where property and edit it, you need to modify query directly via SqlQuery in Before Execute Select event:

CType(Select_,TableCommand).SqlQuery = new StringBuilder("select * from table_name where field1=" & System.Web.HttpContext.Current.Request.QueryString("param_name"))
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.