1357: CSV, XLS and XML reports don't appear in menu [#7584]

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: 1357: CSV, XLS and XML reports don't appear in menu [#7584]

Re: 1357: CSV, XLS and XML reports don't appear in menu [#75

by Lowlander » Fri Apr 01, 2011 12:41 pm

Fixed in 1359.

Re: 1357: CSV, XLS and XML reports don't appear in menu

by Lowlander » Thu Mar 24, 2011 2:15 pm

Re: 1357: CSV, XLS and XML reports don't appear in menu

by gege » Thu Mar 24, 2011 1:21 pm

Lowlander wrote:This has been like that for a while. I thought it was intentional.
I also thought like that, at first. But the functionality is still there (in the script). And there's no apparent reason to get rid of it.
Besides, changing the order of entries in 'scripts.ini' changes the report displayed in menu, so it's more like a bug to me.

Re: 1357: CSV, XLS and XML reports don't appear in menu

by Lowlander » Thu Mar 24, 2011 1:15 pm

This has been like that for a while. I thought it was intentional.

1357: CSV, XLS and XML reports don't appear in menu [#7584]

by gege » Thu Mar 24, 2011 12:00 pm

I just realized the Export to CSV|XLS|XML reports don't show up in "Create Reports" menu anymore. Only Statistics and File list (HTML) are displayed.

Image

The functionality is still present in 'Export.vbs' script, only the menu items are gone. Looking at 'Scripts.ini' file, we see there are four entries pointing to the same script, with ProcName= property pointing to correspondent function for each report. This has always worked in MM 3.x.

Now, only the first entry for each .vbs file referenced in 'Scripts.ini' is displayed in menu. Subsequent entries are ignored. I discovered this by changing the order in which the entries are listed in 'Scripts.ini' and thus effectively changing the report that appears in menu.

These are the entries I mentioned. Swap the first one with another in 'Scripts.ini' and you change the report that appears in menu.

Code: Select all

[ExportHTML]
FileName=Export.vbs
ProcName=ExportHTML
Order=2
DisplayName=File List (&HTML)
Description=Exports list of selected files to a .htm file
Language=VBScript
ScriptType=1

[ExportXML]
FileName=Export.vbs
ProcName=ExportXML
Order=3
DisplayName=File List (&XML)
Description=Exports list of selected files to an .xml file
Language=VBScript
ScriptType=1

[ExportCSV]
FileName=Export.vbs
ProcName=ExportCSV
Order=4
DisplayName=File List (CS&V)
Description=Exports list of selected files to a .csv file
Language=VBScript
ScriptType=1

[ExportXLS]
FileName=Export.vbs
ProcName=ExportXLS
Order=5
DisplayName=File List (&Excel)
Description=Exports list of selected files to a .xls file
Language=VBScript
ScriptType=1

Top