Page 1 of 1

datasource change?

Posted: Wed Mar 02, 2011 4:48 am
by abi
hai..

i try change my datasource but it still exeture old query, i use mysql provider

this my code on my program:

Code: Select all

string il1 = String.Format("CALL getbyDate(\'{0}\',\'{1}\',\'{2}\')", Keyword, Date1, Date2);
string il2 = String.Format("CALL getbyDateIdCom(\'{0}\',\'{1}\',\'{2}\',{3})", Keyword, Date1, Date2, IdCom);
string cSql = IdCom == 0 ? il1 : il2;

StiMySqlSource source = Report.Dictionary.DataSources["dsHeader"] as StiMySqlSource;
source.SqlCommand = cSql;
may you help me?

thanks

datasource change?

Posted: Wed Mar 02, 2011 8:50 am
by Alex K.
Hello,

We couldn't reproduce this bug.
Please send us a simple test application which reproduces the problem.

Thank you.

datasource change?

Posted: Sun Mar 06, 2011 1:40 am
by abi
sorry late..

i change my code..

work fine again

thanks.

tips:
-change connection before report compiling
-change report variable after compiling report

datasource change?

Posted: Sun Mar 06, 2011 6:17 am
by Andrew
Hello,

Thank you for letting us know about this.

Have a nice day!