Jump to content
Changes to the Jaspersoft community edition download ×

can j/r handle this ?


Recommended Posts

By: flare - flareinc

can j/r handle this ?

2002-01-18 14:18

I'm looking for a pdf report tool and jasperreports seems a cool one.

I've a complex database, sometimes I used indexes to store strings, other times I've binary-encoded bunch of checkboxes(ex: x00x = 1001 = int 9), can I decode those values using j/r? I mean doing things like that:

 

array[0]="string1";

array[1]="string2";

reportFieldPrint(array[getIndexfromDb]);

 

If not I guess I should study and use Itext directly :((

 

Thanx

 

 

By: Jim Snyder - jdsnyderii

RE: can j/r handle this ?

2002-01-18 14:22

You should be able to handle this using variable expressions. Effectively you can use java code in the expressions to compute values. If you create some library functions to be used in the variable expressions, you should be ok.

 

 

By: flare - flareinc

RE: can j/r handle this ?

2002-01-20 02:28

You mean I can create an helper class (with static methods) to compute values? I would be great!!

Can you supply a little example?

Is this kind of code valid?

 

<variable name = "finalString" class="java.lang.String"

calculation="Nothing">

<variableExpression>

uri.HelperClass.getRealString( $F{index1} )

</variableExpression>

</variable>

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...