Focal Point
[CLOSED] Expand Collapse Rows

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7637016666

January 10, 2014, 01:10 PM
shelzalee
[CLOSED] Expand Collapse Rows
I’m using 7.7.03. I’ve had a request for a report to show summary level results with an expansion option that would show the detail leading to the summary line. This is how many displays works with the + - sign. I know I can drill into a summary level result and return the detail info, but the request was to be able to expand and collapse from the one view without running another report. I’m not familiar with a way to do this or if WebFOCUS offers this option. Has anyone done something similar, know some key words I can search for, or if this functionality exists? We didn’t get into great detail on what formats they’d want this in, but I’d assume HTML and/or Excel. I assume this can be done with Javascript, but I was hoping for built-in functionality. This report can be ran with different options that would complicate keeping up with this functionality in Javascript. If the only option is Javascript, if someone could post a simple example of collapsing rows, I'd appreciate it.

Thanks,
shelzalee

This message has been edited. Last edited by: shelzalee,
January 10, 2014, 01:47 PM
jsmark
You might want to try EXPANDBYROW. It only works in HTML:

TABLE FILE CAR
PRINT RC DC SALES WEIGHT BY COUNTRY BY CAR
ON TABLE SET EXPANDBYROW ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = endeflt,
$
END
January 10, 2014, 03:59 PM
shelzalee
jsmark,

Thank you for the suggestion. If I was doing a standard subtotal on the first sort by this would get me what I wanted in HTML.

Unfortunately, I had to do a subfooter in order to get text values along with subtotaled values for the columns. The first sort by is not the requested by that the subfooter is totaling at either. If it made the difference I might be able to talk the business into switching that up to use this feature. This is a neat feature though, and I'll keep it in mind in the future.

I'll leave this open until Monday to see if anyone else has any ideas.


7.7 Windows HTML, PDF, Excel