PROBLEM WITH GROUPS

HI, IS THERE A WAY TO GROUP A REPORT DEPENDING ON A CERTAIN FIELD? I MEAN, THAT USERS HAVE THE OPTION TO SELECT THE FIELD TO GROUP THE RECORD, THANKS IN ADVANCE

Yes, but it will get a bit messy. It’s not as simple as merely setting some option, you need some coding. You will need to supply an option field with the available grouping fields. In code, you have to SETCURRENTKEY on the selected field, depending on the option field’s value. Of course, all these keys must exist for the table. Furthermore, you need to specify any GroupTotalFields required. Then you need the GroupHeader and GroupFooter sections and, if you want to display some information about which group is being printed, you need a text field which you fill in code, again depending on the option field’s value. I don’t know if there’s a standard report as an example. We have a report 5600 from the asset management module which works this way. PS: Please do not post IN CAPITAL LETTERS, THIS IS HARD TO READ AND CONSIDERED “SHOUTING”.

[:0] [V] Please, please, please, write in lowercase. [;)]

thanks, sorry about the capital letters