Issue DescriptionWe need to hide the "view as tree" button in ad-hoc view creation - "Select Data" Page. We are OK if both of the "View as Tree" and "View as List" buttons are hidden. | [toc] |
Resolution
You hide it by changing the files <jasperserver-pro>scriptsadhocdatachoosertemplatedatachooserTabTemplate.htm and <jasperserver-pro>optimized-scriptsadhocdatachoosertemplatedatachooserTabTemplate.htm
to this:
<button class="button {{= additionalCssClasses }}{{ if (exposeAction) { }} {{= action}} {{ } }} up" style="{{ if(action === 'tree') { }} {{= 'display: none;' }} {{ } }}" title="{{ if(action === 'list') { }} {{= i18n.ADH_108_DATA_CHOOSER_LIST_TAB_TOOLTIP }} {{ } else { }} {{= i18n.ADH_108_DATA_CHOOSER_FOLDERS_TAB_TOOLTIP }} {{ } }}"> <span class="wrap">{{= label }}</span> </button>
If you want to hide both buttons, change it to this:
<button class="button {{= additionalCssClasses }}{{ if (exposeAction) { }} {{= action}} {{ } }} up" style="display: none;" title="{{ if(action === 'list') { }} {{= i18n.ADH_108_DATA_CHOOSER_LIST_TAB_TOOLTIP }} {{ } else { }} {{= i18n.ADH_108_DATA_CHOOSER_FOLDERS_TAB_TOOLTIP }} {{ } }}"> <span class="wrap">{{= label }}</span> </button>
Ref. Case 00060237
Recommended Comments
There are no comments to display.