Solved

Filter Results Question

Posted on 2013-06-03
10
246 Views
Last Modified: 2013-06-24
Hello,
      I have a crystal report I wrote to show me all open work orders in our database. I have it grouped by work order id, then work order release id and then part number id. In the details of the report I have several items. One of them is the operations, (sequences), of the work order. These are the steps that make up the work order. The report runs fine and the data is accurate. I would like to filter this report to only show me the open work orders that have an operation that starts with a specified text. I can use select expert to just show me the operations that start with the specified text but I want to see the other operations for that work order that don’t start with the specified text. Any help would be appreciated.

Thank you
0
Comment
Question by:daskas27
  • 5
  • 5
10 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 39216256
If you can do it, build a stored procedure in the database.

You could also build a command to return the items you want.

You can do it in the report through the group select expert.  This is really just a suppression of the groups that don't meet the criteria so if you have summaries they will reflect the suppressed records.

Create a formula

If InStr({YourField},"YourText") > 0 then
    1
Else
    0

Click REPORT --> SELECTION FORMULAS --> GROUP EXPERT
Sum({YourFormula},{OperationsField}) > 0

mlmcc
0
 

Author Comment

by:daskas27
ID: 39226840
No workie.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39227043
How doesn't it work?

mlmcc
0
Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

 

Author Comment

by:daskas27
ID: 39271198
Please see the attached file.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39271300
You forgot to attach the file

There is a comment field you have to put something into or else the attachment won't be added.

mlmcc
0
 

Author Comment

by:daskas27
ID: 39271308
Please see attached, again.
Formula.pdf
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39271405
Why do you believe it isn't working?

The string comparison is generally case-sensitive.

mlmcc
0
 

Author Comment

by:daskas27
ID: 39271835
Please see the last page of the screen prints. That is as far as I get.
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39271863
Sorry.  I didn't [age through it far enough.

WHen you use formulas like

Sum({Field1},{Field2})

Field2 must be one of the groups in the report.  You have 3 groups so those are the only fields you can use.  If you need to use another field for the sum to group on, you need to add it as a group

mlmcc
0
 

Author Closing Comment

by:daskas27
ID: 39271957
Bingo! It works just as I wanted.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

726 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