cancel
Showing results for 
Search instead for 
Did you mean: 

Customizing file export dialog box

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

ted_ueda
Employee
Employee
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

That makes sense.

Thanks.