Solved

filter expression

Posted on 2009-07-08
5
1,011 Views
Last Modified: 2013-12-26
Hi all,

    i have written a filter expression but i am getting a error as
   "Expecting True/False Expression"

please check my expression

IF dw_2.rowcount() > 0 THEN      
      dw_2.setFilter("document_no like '"+ upper(ls_doc) +"' or document_no like '"+ lower(ls_doc) +"'")
      dw_2.filter()      
END IF
0
Comment
Question by:Treety_Patnaik
  • 3
  • 2
5 Comments
 
LVL 14

Expert Comment

by:shru_0409
ID: 24801649
IF dw_2.rowcount() > 0 THEN      
      dw_2.setFilter("document_no like '"+ upper(ls_doc) +"' or document_no like '"+ lower(ls_doc) +"'")
      dw_2.filter()      
END IF

triy this
0
 
LVL 14

Expert Comment

by:shru_0409
ID: 24801655
sorry try this

IF dw_2.rowcount() > 0 THEN      
      dw_2.setFilter("document_no like '"+ upper(ls_doc) +" or document_no like "+ lower(ls_doc) +"'")
      dw_2.filter()      
END IF

0
 

Author Comment

by:Treety_Patnaik
ID: 24801735
it is totally not working ............. my expression is giving me the correct result but it is showing that message .....

But shru your expression is giving me no result .... the dw_2 is getting blank.
0
 
LVL 14

Accepted Solution

by:
shru_0409 earned 500 total points
ID: 24802012
IF dw_2.rowcount() > 0 THEN      
      dw_2.setFilter(" upper(document_no) like '"+ upper(ls_doc) +"'" )      
      dw_2.filter()      
END IF
sorry try this...
0
 

Author Comment

by:Treety_Patnaik
ID: 24802660
Perfect answer by Shru
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now