troubleshooting Question

Crystal Reports Formula Editor

Avatar of Ryan Rood
Ryan RoodFlag for Canada asked on
Crystal Reports
9 Comments1 Solution21 ViewsLast Modified:
Good morning,
I am modifying a Crystal Report and having some issues. Essentially I need to add a filter to see if a string of text exists in the record and then omit if it does. Here is the current code. I need to add something like this

IF InStr({OrderHeader.ManualDescription}, "Trim 1") THEN 0

I have noted where I believe the new data chunk should go (hopefully). Long story short - if the OrderHeader.ManualDescription is going to be used I need to check it first for "Trim 1" and omit it.

Shared numbervar oldLinkedToLineID;
Shared numbervar curLinkedToLineID;

stringvar strIndent := "";

If oldLinkedToLineID = curLinkedToLineID and curLinkedToLineID > 0 Then strIndent := " -> ";

If {OrderHeader.LineType} = 1 Then //Product
(
    // POTENTIAL NEW CODE INSERTION HERE?
    If IsNull({OrderHeader.ManualDescription}) Then
        strIndent + {OrderHeader.Description}
    Else
        strIndent + {OrderHeader.ManualDescription}
)
Else If {OrderHeader.LineType} = 2 Then // Profile
(
    strIndent + {OrderHeader.ManualDescription}
)
Else
(
    If IsNull({OrderHeader.ManualDescription}) Then
        strIndent + {OrderHeader.ManualCode}
    Else
        // POTENTIAL NEW CODE INSERTION HERE?
        strIndent + {OrderHeader.ManualDescription}
)   

Open in new window


Thank you in advance for any guidance here.

Ryan
ASKER CERTIFIED SOLUTION
James0628

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros