Hi everyone,
I want to collapse the collapsible region, if the return of the IR is NULL, else collapse the specific region, by Default.
I did this steps:
- Give unique static ID to the reports (autreEng)
- Specify error message if no record found in report attributes
- Write Jquery code as follow in the "Execute when Page Loads" section of the page for each report as follow
jQuery(document).ready(function() {
if ($('.nodatafound','#autreEng').length) {
$("#autreEng").removeClass('is-expanded').addClass('is-collapsed');
$("#a_Collapsible3_autreEng_content").attr("aria-hidden","true");
}
else{
$("#autreEng").removeClass('is-collapsed').addClass('is-expanded');
$("#a_Collapsible3_autreEng_content").attr("aria-hidden","false");
}
});
But i have one problem, this code works only if i use Classic Report, but if i have Interactive Report it doesnt.
Thank you for help.