Solved

Crystal Report

Posted on 2012-12-27
3
402 Views
Last Modified: 2012-12-28
Good day,
Please help.
I need to change (if {?Language} = "ENG" then {VERSIONS.VERSION} = 2 else if {?Language} = "RUS" then {VERSIONS.VERSION} = 1) statment to VERSIONS.VERSION IN (COALESCE((SELECT VERSIONS.VERSION FROM VERSIONS WHERE VERSIONS.DOCNUMBER=Profile.DOCNUMBER AND VERSIONS.VERSION=2), 1)) in Crystal reports.
It means the report must show version =2 if exist and if not - version = 1.
Thanks in advance,
Gulshat
0
Comment
Question by:ZhumaG
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
vasto earned 500 total points
Comment Utility
Create a SQL expression:
(COALESCE((SELECT VERSIONS.VERSION FROM VERSIONS WHERE VERSIONS.DOCNUMBER=Profile.DOCNUMBER AND VERSIONS.VERSION=2), 1))
0
 

Author Comment

by:ZhumaG
Comment Utility
Thanks a lot.
And in my report parametr Language is string, but  here (COALESCE((SELECT "VERSIONS"."VERSION" FROM "AKS_HSE"."DOCSADM"."VERSIONS" "VERSIONS" WHERE "VERSIONS"."DOCNUMBER"="PROFILE"."DOCNUMBER" AND "VERSIONS"."VERSION"=2), 1)) it returns int.
Can I change it  to string in SQL expression?
0
 

Author Comment

by:ZhumaG
Comment Utility
OOO Thanks. Everything is ok now.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

762 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

5 Experts available now in Live!

Get 1:1 Help Now