Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] accordion report sorting

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] accordion report sorting
 Login/Join
 
Platinum Member
posted
Would anyone know a way to sort the detail level of an accordion report? In other words: to sort the fields 'after' the BY fields, since the BY fields are used to expand.

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8105m
Windows 7, All Outputs

Member of the Benelux Usergroup
 
Posts: 198 | Location: Amsterdam | Registered: August 24, 2011Report This Post
Expert
posted Hide Post
Do you mean something like this?

TABLE FILE GGSALES
PRINT DOLLARS
   BY REGION
   BY ST
   BY STCD
   BY HIGHEST DOLLARS NOPRINT
WHERE DATE FROM 19960101 TO 19961231
ON TABLE SET EXPANDABLE ON
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
ENDSTYLE
END
-RUN


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Platinum Member
posted Hide Post
Tony, thank you but unfortunately this doesn't work, as the NOPRINT still influences the accordion.


WebFOCUS 8105m
Windows 7, All Outputs

Member of the Benelux Usergroup
 
Posts: 198 | Location: Amsterdam | Registered: August 24, 2011Report This Post
Expert
posted Hide Post
Then your (potential) solution is to pre-parse the data to get it into the order in which you want it -

TABLE FILE GGSALES
  SUM COMPUTE SRT_DOLLARS/D12.2c = DOLLARS; AS DOLLARS
   BY REGION
   BY ST
   BY CITY
   BY STCD
   BY HIGHEST TOTAL SRT_DOLLARS NOPRINT
   BY DATE
WHERE DATE FROM 19960101 TO 19961231
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE SET ASNAMES ON
ON TABLE HOLD AS TEMPHLD1
END
-RUN

TABLE FILE TEMPHLD1
PRINT DATE
      DOLLARS
   BY REGION
   BY ST
   BY CITY
   BY STCD
ON TABLE SET EXPANDABLE ON
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
ENDSTYLE
END
-RUN


T

This message has been edited. Last edited by: Tony A,



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Platinum Member
posted Hide Post
Thank you Tony, but it's also a multi-verb Smiler

 

TABLE FILE HOLD
SUM
   D AS DTOTAL
BY A
BY B
BY C
PRINT E
      F
      D
BY A
BY B
BY C
BY HIGHEST E
ON TABLE HOLD AS SWES
END
-RUN

TABLE FILE SWES
PRINT E AS ''
      F AS ''
      D AS ''
BY A  AS ''
BY B  AS ''
BY C  AS ''
ON TABLE SET EXPANDABLE ON
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
ENDSTYLE
END
-RUN


BY HIGHEST E works right, but now I would like to have BY HIGHEST DTOTAL too, but not PRINTED. So something like:

 

TABLE FILE HOLD
SUM
   D AS DTOTAL
BY A
BY B
BY C
PRINT E
      F
      D
BY A
BY B
BY C
BY HIGHEST E
ON TABLE HOLD AS SWES
END
-RUN

TABLE FILE SWES
PRINT E AS ''
      F AS ''
      D AS ''
BY A  AS ''
BY HIGHEST DTOTAL NOPRINT
BY B  AS ''
BY C  AS ''
ON TABLE SET EXPANDABLE ON
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
ENDSTYLE
END
-RUN


Also, is there a way to have the TOTAL ABOVE with an accordion?

Thanks, SWES


WebFOCUS 8105m
Windows 7, All Outputs

Member of the Benelux Usergroup
 
Posts: 198 | Location: Amsterdam | Registered: August 24, 2011Report This Post
Platinum Member
posted Hide Post
Would anyone have a suggestion?


WebFOCUS 8105m
Windows 7, All Outputs

Member of the Benelux Usergroup
 
Posts: 198 | Location: Amsterdam | Registered: August 24, 2011Report This Post
Expert
posted Hide Post
My apologies, but I thought that you had it -

SET ASNAMES = ON
SET HOLDLIST = PRINTONLY
TABLE FILE GGSALES
  SUM DOLLARS AS DTOTAL
   BY REGION  AS A
   BY ST      AS B
   BY DATE    AS C
  SUM BUDDOLLARS AS E
      UNITS      AS F
      DOLLARS    AS D
   BY REGION  AS A
   BY ST      AS B
   BY DATE    AS C
   BY HIGHEST BUDDOLLARS NOPRINT
WHERE DATE FROM 19960101 TO 19960331
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE SET ASNAMES ON
ON TABLE HOLD AS SWES
END
-RUN

TABLE FILE SWES
PRINT E AS ''
      F AS ''
      D AS ''
BY A  AS ''
BY HIGHEST DTOTAL NOPRINT
BY B  AS ''
BY C  AS ''
ON TABLE SET EXPANDABLE ON
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
ENDSTYLE
END
-RUN


As for totals above? Well, there is SET SUBTOTALS = ABOVE but not for use with EXPANDABLE, so you'll probably have to resort to multi passes and merging the results Frowner

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] accordion report sorting

Copyright © 1996-2020 Information Builders