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

How to call a section (detail) of a Subreport JasperStudio.


christmoney1

Recommended Posts

Hi, 

I've  main report wich have a detail section called Detail 5  as you can see on the screenshot.

This is my report: 

/sites/default/files/user_uploads/christmoney1/capture.png

In this main report i've a subreport which have two (2) Detail:  Detail2 and Detail3 section as you may see on the picture beelow:

/sites/default/files/user_uploads/christmoney1/capture2.png

 

This is my request:

I'would like to display on the main report one of subreport ' section  (Detail2 or Detail3 )  when a condition is reached.

In Detail2  subreport'section  this is the condition : $F{Code.Groupe}.equals("MBAM") and in Detail3 subreport'section  this is the condition  !($F{Code.Groupe}.equals("MBAM"))

/sites/default/files/user_uploads/christmoney1/capture3.png

 

There is someone who can help me with this,??

 

Sincerely.

 

 

 

In 

 

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Bonjour,

La case "afficher si expression" me semble une bonne idée. Cela permet de cacher la bande en fonction d'un paramètre. Je ne sais pas si le code groupe vient de la requête du sous-rapport ou du principal.

Si c'est depuis le sous rapport cela devrait fonctionner tout seul.

Si c'est depuis le rapport principal, il faut passer le paramètre lors de l'appel du sous rapport. Cela se fait via "Edit parameters" dans les paramètres du sous rapport, depuis le rapport principal.

Il faut y indiquer le nom du paramètre du sous rapport, qui va recevoir la donnée du champ/paramètre du rapport principal.

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