Solved

filter expression

Posted on 2009-07-08
5
1,038 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
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.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

756 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