Jump to content

iReport -- Compare "text" Values


runner1549

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Doing the below "Solution" worked, but how can I resort the below so all "Yes" items display first ?

Solution
1. drop "TextField" onto page
2. add ($F{USA}.equals($F{CANADA}) ? "No":(!$F{USA}.equals($F{CANADA}) ? "Yes":"Fail"))
3. make no changes to below SQL
    SELECT fmr.fmcode,
           MAX(DECODE(fma.fmpropertyid, 391, REPLACE(FMP.FMMINIMUM,' ',NULL))) usa,
           MAX(DECODE(fma.fmpropertyid, 19933, REPLACE(FMP.FMMINIMUM,' ',NULL))) canada
    FROM fmpropertyassign fma
    INNER JOIN fmpropasschar fmp
    ON fma.fmpropertyassignid = fmp.fmpropertyassignid
    INNER JOIN fmresource fmr
    ON fmr.fmentityobjectid = fma.fmentityobjectid
    WHERE fma.fmpropertyid IN (19933, 391)
    and fmr.FMENTITYID = 1
    group by fmr.fmcode

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...