Solved

filter expression

Posted on 2009-07-08
5
1,004 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

746 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

10 Experts available now in Live!

Get 1:1 Help Now