Master Posted September 8, 2016 Report Share Posted September 8, 2016 I need to show the link to child report in a report based on my parent table if there is any child Quote Link to comment Share on other sites More sharing options...
MayMusic Posted September 8, 2016 Report Share Posted September 8, 2016 add a calculated field to your parent report page to count number of child records: Calculated Field 1: SELECT COUNT(Parent_ID) FROM Child WHERE Parent_ID = [@field:ID] "Parent_ID" is foreign key in child table. "Child" is the name of the child table. add a HTML Block to your parent report and use the code below to show the conditional link: <div id="link[@field:ID]"></div> <script> if ([@calcfield:1] >1){ document.getElementById('link'+[@field:ID]).innerHTML = "URL"; } </script> [@field:ID] needs to be selected from picker. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.