dansky Posted March 21, 2007 Share Posted March 21, 2007 I need an expression that will do the following: text + variable + text + variable + text This is what I have working so far... "Equipment: " + $F{EQ_EQUIP_NO} But when I try this it does not work.. "Equipment: " + $F{EQ_EQUIP_NO} + "Year" + $F{YEAR} Any ideas? Thanks. Link to comment Share on other sites More sharing options...
aniruddh4u Posted March 22, 2007 Share Posted March 22, 2007 "Equipment: " + $F{EQ_EQUIP_NO} + "Year" + $F{YEAR} make sure that EQ_EQUIP_NO and YEAR fields are of type java.lang.String..... ...Aniruddh Link to comment Share on other sites More sharing options...
dansky Posted March 22, 2007 Author Share Posted March 22, 2007 This fixed the problem.... "Equipment: " + $F{EQ_EQUIP_NO} + "Year " + $F{YEAR}.toString() I had to cast "YEAR" as a string. It works! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now