Jump to content
We've recently updated our Privacy Statement, available here ×

HJK

Members
  • Posts

    4
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Posts posted by HJK

  1. Hi,

     

    I have a simmular problem.

    In my case I have a database field (integer) lineitemtype. When it is 0 I want to return a string "Artikelen" when it's 1 I want to return a string "Uren" and when it's 2 I want to return a string "Kosten"

     

    I have this expression:

    new java.lang.String($F{lineitemtype} == new Integer(0) ? "Artikelen" : ($F{lineitemtype} == new Integer(1) ? "Uren" : ($F{lineitemtype} == new Integer(2) ? "Kosten" : "other"«») ) )

     

    but the problem is that what the value is it is always returning the string "other" And I'm sure the integer is 0 or 1 or 2, nothing else.

     

    What am I doing wrong??

    Post edited by: HJK, at: 2007/03/23 09:31

  2. I have the same problem here.

    In my database there are (simple) html-fields which begins with: <html><head><body><b>bladibla</b> etc..etc..

     

    That text is given into the DB in another seperate Java-app that uses the SUN HTML-AREA.

     

    I'm getting an error that <html> is not a valid tag or something. If I mannualy adjust the field to only <b>bladibla</b> it works.

     

    I'm I overlooking something, is this on the whislist?

×
×
  • Create New...