Focal Point
[CLOSED] FML - Sorting other than Account Number

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

March 24, 2009, 11:25 AM
Endre
[CLOSED] FML - Sorting other than Account Number
As a default, the FML report sorts on account number (in our case ACCOUNT). Our users have a specific sorting requirement for the account list/rows on the report, but I don't know how to sort the accounts other than the default.

Here is the code that FML generates for the report. Is there a way to add sorting other to the "FOR AC****"?
---------------------------------------------------
TABLE FILE COA_RELATIONSHIPS
SUM
FFBD_ACTUAL/P12.2CM AS 'Actual'
FOR
ACCOUNT
"Operational Revenues:" LABEL R1 OVER
'OPERREVENUES' GET CHILDREN 1 ADD AS CAPTION LABEL R2 OVER
'OPERREVENUES' ADD ALL AS CAPTION LABEL R3 OVER
" " LABEL R4 OVER
"Operational Expenses:" LABEL R5 OVER
'F0230' AS 'SALARIES' LABEL R6 OVER
'F0240' AS 'BENEFITS' LABEL R7 OVER
'F0350' AS 'DEPRECIATION' LABEL R8 OVER
'OPEREXPENSES' GET CHILDREN 1 ADD AS CAPTION LABEL R9
HEADING
" "
FOOTING
""

This message has been edited. Last edited by: Kerry,


WebFocus 7.6.8
iWay Data Migrator 7.6.8
PMF 5.1
March 24, 2009, 11:51 AM
Tony A
Just specify the order you want by changinf the FOR syntax -

TABLE FILE COA_RELATIONSHIPS
SUM 
FFBD_ACTUAL/P12.2CM AS 'Actual'
FOR
ACCOUNT
"Operational Expenses:" LABEL R5 OVER 
'F0350' AS 'DEPRECIATION' LABEL R8 OVER 
'F0240' AS 'BENEFITS' LABEL R7 OVER 
'F0230' AS 'SALARIES' LABEL R6 OVER 
'OPEREXPENSES' GET CHILDREN 1 ADD AS CAPTION LABEL R9
"Operational Revenues:" LABEL R1 OVER
'OPERREVENUES' GET CHILDREN 1 ADD AS CAPTION LABEL R2 OVER 
'OPERREVENUES' ADD ALL AS CAPTION LABEL R3 OVER 
" " LABEL R4 OVER 

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 
April 01, 2009, 04:39 PM
Endre
thnx Tony,

I think I didn't phraze my question correctly...

When the childers are presented due to the "show childern" option selection on the parent row in FML GUI matrix, the children are sorted by account number on the report. Is there a way to control that it is sorted by name of the account (account_caption column)?
thnx
Endre


WebFocus 7.6.8
iWay Data Migrator 7.6.8
PMF 5.1