Reports

Features wanted...
Post Reply
jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Reports

Post by jacky »

Just a couple of ideas for the reports:

:arrow: I'd like it if there could be a way to add a new colum with the "contents" information of every folder, like one the General Info from the panel, you know: x files, y folders

:arrow: Another nice thing would be a way to have "line header" & "line footer" or something like that. Cause I actually use the reports to create HTML files. So I can use </td><td> as separator, but I have to add on each line <tr><td> at the beginning, and </td></tr> at the end....

admin
Site Admin
Posts: 66253
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Reports

Post by admin »

Hey, "line header" & "line footer" is very nice. Actually, creating an HTML report is on my personal wish list for some time...

Your first point leaves me a bit confused: please explain.

admin
Site Admin
Posts: 66253
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Reports

Post by admin »

FYI, I'm planning do add report templates, which will do what you want and much more.

Here's a first sketch of the report templates structure. We have three sections, header (generated once per report), record (is repeated for every reported file), and footer (generated once per report):

Code: Select all

  $HEADER
    Everything here is header
  $RECORD
    Everything here is a record line, using variables like $Name, $Sizebytes, $Modified, etc. ...
  $FOOTER
    Everything here is footer
  
Additional per-report variables: $Sumbytes, $Countfiles, etc. ...
Here's a very simple example of a report template that will generate a simple report (of all selected files) in HTML-format:

Code: Select all

  $HEADER
    <html><body>
    <table>
  $RECORD
    <tr><td>$Name, $Sizebytes, $Modified</td></tr>
  $FOOTER
    </table>
    $Countfiles found, $Sumbytes bytes, generated $Datenow.
    </body></html>

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: Reports

Post by jacky »

admin wrote:FYI, I'm planning do add report templates, which will do what you want and much more.
Well, this will be another really great & usefull feature!! :D

My first point was, right now in reports I can have, for every folders, its name, size, dates.. .but I'd like to have a new "column" that would state how many files & folders are in.
Like if you selected a folder, and go to General Info in the panel; you'll have DOS name, space used, etc and last line is something like:
Contents: 247 files, 18 folders
I wish there was a way to have this in reports as well 8)

admin
Site Admin
Posts: 66253
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Reports

Post by admin »

jacky wrote:Contents: 247 files, 18 folders
I wish there was a way to have this in reports as well 8)
Ah ok. This can be part of the new report templates...

To whom it may concern:
This is the time now to make suggestions concerning the report template format I proposed earlier in this thread.
This is the state of affairs now (the $BLAH and $blah stuff are fixed keywords for sections and variables TV3 will use to parse the template):

Code: Select all

  ------------------------------------------------------------------------
  $HEADER [optional]
    report header
  $RECORD
    each record, using field variables like $Name, $Size, $Modified ...
  $RECORD2 [optional]
    each even record (useful for generating alternate color grids)
  $FOOTER [optional]
    report footer
  
  Additional variables (for header and footer): $Sumbytes, $Countfiles ...
  ------------------------------------------------------------------------

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Post by jacky »

Well, i don't know how you're gonna do it exactly; but right now there are 2 kind of reports: Current Folder & Current List.
Are templates gonna be working for both (one template for each of them), or only one of them?

In Current Folder we can choose to include subfolders aswell. Any thought on how this would be working with templates?? Cause if you just reuse the header/footer it will be a mess as there would be made to create one HTML file....
Maybe some kind of "subheader"/"subfooter" would be necessary, so something special can be designed for such case.

Thinking of this, atm we got the current folder done, then its first sub, then second, etc. Would it be possible to get them "inline" :?: Like:

Code: Select all

[HEADER]
[LINE]Folder One
[LINE2]... SubFolder1
[SUBHEADER]
[LINE]   ... File1
[LINE2]   ... SubSubFolder
[SUBHEADER2]
[LINE]      ... File2
[SUBFOOTER2]
[SUBFOOTER]
[LINE]... SubFolder2
[LINE2]... SubFolder3
[SUBHEADER]
[LINE]   ... File4
[LINE2]   ... File5
[LINE]   ... File6
[SUBFOOTER]
[LINE]... File7
[LINE2]... File8
[FOOTER]

On another note, one thing I'd like is the possibility to scans all subfolders, but only report files. This would allow to make such list:

Code: Select all

Report for D:\My Folder

\SubFolder1\File1
\SubFolder1\SubSubFolder\File2
\SubFolder3\File4
\SubFolder3\File5
\SubFolder3\File6
File7
File8

RalphM
Posts: 2089
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: Reports

Post by RalphM »

admin wrote:FYI, I'm planning do add report templates, which will do what you want and much more.
Does that mean I won't need my Word template anymore???

If you ever had a look at it, you know what my wishes are - regarding reports.
Actually my wishes were rather formatting matters and I'm looking forward to check out the new report templates.
Ralph :)
(OS: W11 25H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)

admin
Site Admin
Posts: 66253
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

jacky wrote:Well, i don't know how you're gonna do it exactly; but right now there are 2 kind of reports: Current Folder & Current List.
Are templates gonna be working for both (one template for each of them), or only one of them?
Actually I would like to combine Current Folder & Current List to one thing -- I never really liked this logically weird "distinction".
I would keep some of the preformatted options (Classic dir dump, CVS, tree structure), probably by having a bunch of hard-coded internal templates to which the user can add her own templates.
Now as I mention "tree structure" it becomes obvious that the template structure must be developed further... Same with your "include subfolders"...

It will be a bigger enterprise to design a real good report template system.
We are approaching TrackerV3 ver 4.10 here!
Last edited by admin on 20 Sep 2005 11:08, edited 1 time in total.

admin
Site Admin
Posts: 66253
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Reports

Post by admin »

RalphM wrote:
admin wrote:FYI, I'm planning do add report templates, which will do what you want and much more.
Does that mean I won't need my Word template anymore???

If you ever had a look at it, you know what my wishes are - regarding reports.
Actually my wishes were rather formatting matters and I'm looking forward to check out the new report templates.
I had a look at it and I will have another one, thanks for reminding me :wink:

Will the Word template be superfluous then? TV3 will certainly not create Word-files but only ASCII-based formats like txt, cvs, html files.

Creat
Posts: 234
Joined: 22 Sep 2005 18:27

Re: Reports

Post by Creat »

admin wrote:
RalphM wrote:
admin wrote:FYI, I'm planning do add report templates, which will do what you want and much more.
Does that mean I won't need my Word template anymore???

If you ever had a look at it, you know what my wishes are - regarding reports.
Actually my wishes were rather formatting matters and I'm looking forward to check out the new report templates.
I had a look at it and I will have another one, thanks for reminding me :wink:

Will the Word template be superfluous then? TV3 will certainly not create Word-files but only ASCII-based formats like txt, cvs, html files.
I actually don't know what type of template for word he wanted exactly, but since word can import HTML files he will mose likely be able to create a HTML-Template that does exactly what he wants once it's imported into Word.

just BTW: there are many controls that are able to give you RichText formated output (CRichEchtCtrl for example), but since HTML is more powerful than RTF, he'll probably be able to do the same or more with HTML...

Back to the templates: Will you include IF statements? that will let you select the record-line that a certain record should use as his template depending on his own attributes?

Maybe it's a bit hard to describe, I'll make it clear with an example:

Code: Select all

$HEADER [optional]
report header
$RECORD
$if( recordfield(modified) < today )
each record, using field variables like $Name, $Size, $Modified ... 
$elseif( reccount() > 1000 )
use smaller lines f. ex.
$else
somethingcompletelydifferentfromabove
$endif
$FOOTER [optional]
report footer 
this would for example make it possible to create thumbnailed previews, if you make the filetype (or filetype group, like image, video or something) - and maybe even a possibly cached thumbnail locatin - queryable (is that even a word? ah well you get what I mean ;).

just an idea though, I wouldn't necessarily use it since I have almost no use for reports, but others might...

bye
Creat

RalphM
Posts: 2089
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: Reports

Post by RalphM »

Creat wrote:I actually don't know what type of template for word he wanted exactly...
I didn't want a word template, I once created one to get nice formatted reports of directory contents.
See the following forum topic: http://www.trackerv3.com/forum/viewtopic.php?t=234
Ralph :)
(OS: W11 25H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)

admin
Site Admin
Posts: 66253
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Reports

Post by admin »

Creat wrote:Will you include IF statements?
That was the point when I thought: damn, why did I start this reports templates thing?! :lol:

Reports templates is still in my head... but I wait for more ideas to dripple in and will sit down on it when the time is ripe.

Leopoldus
Posts: 237
Joined: 24 Jun 2004 10:58

Post by Leopoldus »

If you do want to get more suggestions from users, you should to implement HTML report feature as the first step, even without templates etc advanced options. I think that advanced ideas will come when we'll get a basic practice of using HTML reports in general.

admin
Site Admin
Posts: 66253
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

Leopoldus wrote:If you do want to get more suggestions from users, you should to implement HTML report feature as the first step, even without templates etc advanced options. I think that advanced ideas will come when we'll get a basic practice of using HTML reports in general.
True. But bad timing. Got to finish some other open ends first...

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Post by jacky »

Ok, bumping this for a couple of reasons:

- Just to bump it a little in your long to-do list ;) Cause this would be a really nice addition I beleive 8)

- Not completely related but ; Seems it can't be done, allthough I was sure at least the "Info to Clipboard/Extended File Info" would: on pictures or movies & co, we can't have the infos that XY knows (width x height, duration, etc) Would be great if we could, and also as variables in the future reports ;) (I know, would slow down the process, but may be really usefull, and those infos would only be needed if vars are used anyways)

- Extended File Info still: the first line is always "Name :" for me, as in with no name :?
Proud XYplorer Fanatic

Post Reply