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

Integer to unicode Ballot Box


venture

Recommended Posts

This is a follow on to tmy other issue for which I have some solution.

My main goal is to take the value of an Integer (1 or 0) and show with the checked ballot box or the unchecked ballot box respectivly.

 

I had hoped there was a way to do this simply. However I can only think of creating a variabl;e which is assigned the unicode value dependent on the equality:

( $V{test_Integer1}.intValue( ) == 1 ? $V{checkbox} : $V{uncheckbox} )

 

where $V(checkbox) is a String with a value "u2611" (backslash u 2 6 1 1)

and $V(uncheckbox) is a String with a value "u2610" (backslash u 2 6 1 0)

 

This is fine for a small number of variables like this but when one has over 200 in the database - gets tedious!

ANY efficiency hints are of course welcomed!

 

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