on 12-09-2008 5:20 PM
I want to get ride of the option to save a report as an RPT file. Spelunking through docs and forums suggests this is not possible through "normal/documented" needs. So I'm trying to brute force it through code modification. It appears as though the select box containing the export items is generated from a JavaScript function called getFormatDropdownList(). I see that function in five different instances of a file called export.js:
[bob@yaris webapps]$ grep -R getFormatDropdownList *
businessobjects/enterprise115/adhoc/crystalreportviewers115/js/export.js:function getFormatDropdownList() {
businessobjects/enterprise115/adhoc/crystalreportviewers115/js/export.js: getFormatDropdownList() +
businessobjects/enterprise115/desktoplaunch/viewers/crystalreportviewers115/js/export.js:function getFormatDropdownList() {
businessobjects/enterprise115/desktoplaunch/viewers/crystalreportviewers115/js/export.js: getFormatDropdownList() +
businessobjects/enterprise115/adminlaunch/crystalreportviewers115/js/export.js:function getFormatDropdownList() {
businessobjects/enterprise115/adminlaunch/crystalreportviewers115/js/export.js: getFormatDropdownList() +
businessobjects/viewers/crystalreportviewers115/js/export.js:function getFormatDropdownList() {
businessobjects/viewers/crystalreportviewers115/js/export.js: getFormatDropdownList() +
jsfplatform/crystalreportviewers115/js/export.js:function getFormatDropdownList() {
jsfplatform/crystalreportviewers115/js/export.js: getFormatDropdownList() +
[bob@yaris webapps]$
I've edit each one of these files to try and get rid of the option to save the report as an RPT:
// if( rpt )
// {
// list += "<OPTION value=\"CrystalReports\">" + L_CrystalRptFormat + "</OPTION>";
// }
// else
// {
// list += "<OPTION value=\"\">" + L_Formats + "</OPTION>";
// }
But doing so doesn't change the contents of the export select list. Does anyone know how that Select list is populated so I can remove the option for saving the report as an RPT?
Sometime during XI Release 2, the drop-down box functionality was moved from a JavaScript file to internally-compiled code - I recall this was done to resolve a specific issue.
It's not accessible now for modification.
Sincerely,
Ted Ueda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That makes sense.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.