Report: sort in Group Band
Emanuele Croci
Hi,I don't understand how I can sort my data in a Group Band of a report.
I attached an example.
In this pitcure, you can see that the records are not sorted on the HeadBand field.
Can someone help me, please?
Bye
Emanuele
Attachment
[url=http://www.coresystems.ch/wp-content/../wp-content/forum-image-uploads/emanuelecroci/Report2.bmp]Report2.bmp[/url]
Philipp Knecht
Hi EmanuelePlease check if you set the GroupExpression via GetData("..") and NOT by Band like in the attached screenshot.
hth
Attachment
[url=http://www.coresystems.ch/wp-content/../wp-content/forum-image-uploads/philipp/groupband.JPG]groupband.JPG[/url]
Emanuele Croci
Hi Philipp ,I'm sorry... I don't understand your answer...
I attached my screenshot to explain my situation...
can you "tell" me where is the mistake, please?
Bye
Emanuele
Attachment
[url=http://www.coresystems.ch/wp-content/../wp-content/forum-image-uploads/emanuelecroci/Group.JPG]Group.JPG[/url]
Philipp Knecht
Hi EmanueleTry to use groupBand("Field") not GetData("...") in the Header11 Element and the Detail.
And try to avoid Column names with Spaces and other special characters.
hth
Emanuele Croci
Hi,I tried to apply the solution... but it doesn't work.
My "gest - Prova Group" query is:
SELECT OITB.ItmsGrpNam AS [NomeGruppo], OITM.ItemCode AS Articolo, OITM.ItemName AS Descrizione,
CASE OITM.QryGroup2 WHEN 'Y' THEN 'SI' ELSE 'NO' END AS PF, OCRD.CardName AS [FornitorePreferito], OITW.WhsCode AS Magazzino,
OITW.OnHand AS Qta
FROM OITM LEFT OUTER JOIN
OITB ON OITM.ItmsGrpCod = OITB.ItmsGrpCod LEFT OUTER JOIN
OCRD ON OITM.CardCode = OCRD.CardCode LEFT OUTER JOIN
OITW ON OITM.ItemCode = OITW.ItemCode
WHERE (OITW.OnHand > 0)
ORDER BY OITM.ItemCode
I attached a zip file containing:
1) my layout definition (Prova_Layout.bmp)
2) the Prova_Group.rst file
3) a print example (Print_Example.bmp). As you can see... the report is not sorted by "Articolo" field.
Can someone give me the right configuration to obtain the report grouped by "NomeGruppo" field and sorted by "Articolo" field, please?
Best regards
Emanuele
Attachment
[url=http://www.coresystems.ch/wp-content/../wp-content/forum-file-uploads/emanuelecroci/Problema_GroupBand.zip]Problema_GroupBand.zip[/url]
0
Please sign in to leave a comment.
Comments
0 comments