christmoney1 Posted October 13, 2021 Share Posted October 13, 2021 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.pngIn 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 More sharing options...
razorvla Posted October 21, 2021 Share Posted October 21, 2021 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 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