Jump to content

text inpt from user


yanyan

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Well, you can just add a clear field, like $F{COMMENTS} and send data via your Java app to that field. Something like this one:

 

Code:
public Object getFieldValue(JRField field) throws JRException {
Object value = null;
String fieldName = field.getName();

if ("COMMENTS".equals(fieldName)) {
value = "usertyped text";
}

 

 

Something like this. I'm new to JR, so don't know if it's correct. But idea is like i mentioned.

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