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

is it possible to display "detail" band dynamincally, if so how to do?


Go to solution Solved by sjoerd.jump,

Recommended Posts

Hi All,

I have a situation in which I need to display "detail" band dynamically.

1. There is a StaticText field and TextField(will display REMARKS).

2. If REMARKS available, detail band should display on the Report.

3. If REMARKS not available, detail band should not display on the Report.

Any help would be very grateful on above issue.

 

Thanks in Advance

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Thanks for the quick reply.

 

I have written this: $F{REMARKS} != null

 

But getting compilation error:

 

Errors were encountered when compiling report expressions class file:

1. Cannot cast from boolean to Boolean

value = (java.lang.Boolean)(((java.lang.String)field_REMARKS.getValue()) != null); //$JR_EXPR_ID=71$

<----------------------------------------------------------------------->

2. Cannot cast from boolean to Boolean

value = (java.lang.Boolean)(((java.lang.String)field_REMARKS.getOldValue()) != null); //$JR_EXPR_ID=71$

<-------------------------------------------------------------------------->

3. Cannot cast from boolean to Boolean

value = (java.lang.Boolean)(((java.lang.String)field_REMARKS.getValue()) != null); //$JR_EXPR_ID=71$

<----------------------------------------------------------------------->

3 errors

 

why it is not working here although it is working in some other condition?

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