Jump to content

Dynamic styled textField


bobh

Recommended Posts

Staff,

 

I have a report where one of the fields that come of my SQL is one string that it can or not to have underlined parts…

 

My problem is accurately to have that to underline the parts necessary… I tried to use tag <style isUnderline="true">underline part</style>, but as this is come in my field $F{text} as resulted of SQL it is not functioning…

 

If I leave thus: <style isUnderline="true">$F{text}</style> functions, but all the text is underlined, not only the part of the text that I desire….

 

Somebody has some idea of as I can make this?

 

Since already I thank the attention of all.

 

Roberth

Link to comment
Share on other sites

  • 1 year later...
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi,

If i got your problem you mean that u want underline some part of a string.

I think you can do this using java substring function. You can seperate your string data and apply them style.

Like:

<style isUnderline="true">first_part_of_String_data</style> + second_part_of_String_data

 

Regards



Post Edited by bulut bulut at 01/23/09 15:17
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...