Hi,
I am designing one report which is a processing only report.
I have the following records in the table.
Acc. No. - Amount
```````````````````
1. A12345 - 50.00
2. A12345 - 100.00
3. A12345 - 25.00
4. A12222 - 24.00
5. A12222 - 24.00
6. A32154 - 120.00
I need to total the Amount field based on the Acc. No.
My final output should be:
``````````````````````````
1. A12345 - 175.00
2. A12222 - 48.00
3. A32154 - 120.00
And I need to write this output in text file using the File datatype in 3 lines by grouping according to Acc. No.
Can anyone guide me how to proceed with this?
Thanks and Regards,
Aravindh
Answers
Lots of different ways, take your pick. Be creative.
RIS Plus, LLC
I can do the second part, that is writing in text pad. But got struck in the first part. ](*,) Can you help me?
Why would you use textpad, do you have something against the C/AL editor?
RIS Plus, LLC
From the text file that is generating from Navision, will be send to other third party tool as an input for some processing. I could do code for this using File datatype.
RIS Plus, LLC
Use this as a general tool for grouping i.e. put data into it (temptable) like
Then just loop through it and process the results.
This saved my backside so many times...
This really helped me to achieve what I need to. Instead of CLEAR(TempGroupBy), is it right using TempGroupBy.DELETEALL in OnPreDataitem?
Variables:
OnPostDataitem():
Can anyone point out me, where am I doing wrong?
viewtopic.php?f=23&t=54588