Page 1 of 1
SQL in Filter expression
Posted: Mon Aug 22, 2011 5:11 pm
by djm000111
I'm curious how much SQL is supported in Dateband Filter expressions. It seems to be supported partially, but limited. I would like to use the IN and LIKE operators, with wildcard characters as in the following expression: tablename.fieldname IN ("AA","BB","CC") AND NOT tablename.fieldname LIKE "%RR%"
Any suggestions?
SQL in Filter expression
Posted: Tue Aug 23, 2011 2:13 am
by HighAley
Hello.
djm000111 wrote:I'm curious how much SQL is supported in Dateband Filter expressions. It seems to be supported partially, but limited. I would like to use the IN and LIKE operators, with wildcard characters as in the following expression: tablename.fieldname IN ("AA","BB","CC") AND NOT tablename.fieldname LIKE "%RR%"
SQL queries is used only in Data Sources.
There are no SQL queries in filers in Data Bands. They are processing all incoming data for a condition
in situ using C#/VB syntax.
Thank you.
SQL in Filter expression
Posted: Wed Aug 24, 2011 1:04 am
by djm000111
Would you mind giving me more information about the sentence: "They are processing all incoming data for a condition in situ using C#/VB syntax." I assume you are talking about the filters. Are you suggesting that writing a function in VB would extend the capabilities of the filters? Would it be practical for me to write a VB function using SQL to return a filter string?
SQL in Filter expression
Posted: Wed Aug 24, 2011 1:54 am
by HighAley
Hello.
djm000111 wrote:Would you mind giving me more information about the sentence: "They are processing all incoming data for a condition in situ using C#/VB syntax." I assume you are talking about the filters. Are you suggesting that writing a function in VB would extend the capabilities of the filters? Would it be practical for me to write a VB function using SQL to return a filter string?
I meant that Data Band receives all data from Data Source and displays only data which is matching the condition of filter.
Maybe you want to set the filter using data from SQL query.
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?
Thank you.
SQL in Filter expression
Posted: Wed Aug 24, 2011 9:52 am
by djm000111
HighAley, thank you for your reply. Here is more explanation about what I would like to do.
I would like to create a VB function that contains a SQL statement that returns a dataset containing just the information needed.
If it is not possible using a VB function, would you tell me why?
Also, if it is not possible using a VB function, how can I set the filter using data from SQL query?
Thank you.
SQL in Filter expression
Posted: Thu Aug 25, 2011 3:22 am
by HighAley
Hello.
djm000111 wrote:I would like to create a VB function that contains a SQL statement that returns a dataset containing just the information needed.
If it is not possible using a VB function, would you tell me why?
Also, if it is not possible using a VB function, how can I set the filter using data from SQL query?
As we understand you can use SQL query in your Data Source.
Thank you.
SQL in Filter expression
Posted: Thu Aug 25, 2011 11:06 pm
by djm000111
Thank you for your patience.
SQL in Filter expression
Posted: Thu Aug 25, 2011 11:55 pm
by Andrew
Hello,
Let us know if you have additional questions.
Thank you.