Hi, I have a question. Let's say there are data like below and I want to run a report to capture first group of data (Invoice No. 10000 and PO Number ABC1234).
Invoice No. PO Number
10000 ABC1234
10000 ABC1234
10000 ABC1234
10001 ABC1234
10001 ABC1234
10001 ABC1234
Output should be
10000 ABC1234
10000 ABC1234
10000 ABC1234
Any idea? I will be appreciated.
0
Comments
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
by grouping item ledger entry, for item no, variant code and lot no
so i show what in group footer
from body itself i hide it
my question is.... how to export in excel what i have done in report
which means i want to export to excel (group footer part)
For more details you can search in Report - Customer - Order Detail, Report ID :: 108
i can export to excel for raw data
but for grouping data?
i still confused
i use this
it means if the same item no, variant code, lot no.... it should sum up
If you have done grouping then, keep same code(for Export to excel as your format for footer) on Group Footer's section with increasing Row no.
like this
my raw data is like this
ITEM A VARIANT A LOT 1 = 10
ITEM A VARIANT A LOT 1 = 20
ITEM A VARIANT A LOT 1 = 30
these 3 will not showing in my report
only show like this
ITEM A VARIANT A LOT 1 = 60
but this one using grouping from wizard in standard NAV
so the textbox name is also the same (Quantity)
even i put my code in grouping section
but it still became raw data in my excel
what are the grouping field?
what is key for dataitem?
it seems that you are doing manual grouping..!!
i put this code --> CurrReport.CREATETOTALS(Quantity);
in data item
but still the same
how to use it?
2. Put your field on which you want to do grouping in GroupTotalFields of Data Item.
3. Define the field on which you want to get Total in TotalFields of Data Item. OR Put the code in (Note if that field is flow field then use CalcFields, otherwise you will get zero in total)
4. Put your field and code in group footer.
Hope it will help you.
I already follow your step but still fail
here is my steps :
1. Item Ledger Entry, i add secondary keys : Item No,Variant Code,Lot No.
2. i create report using wizard that used this secondary code
3. i group it... i hide the body,i just show group per lot no. (because this one is the lowest level grouping)
(user need to know they have how many quantity for this item & variant in each lot no)
4. i create code to export to excel
as you can see here in my attachment, it show every transaction in item ledger entry
what i want is just only the one i highlight in yellow
groupfooter of "variant code" field and use createtotal(Quantity). You don't need to calculate it manually(Qty += Quantity).
hope now it will clear all.....!!!
that's because my sample data only have 1 lot no
actually have multiple lot no
that what i have done until now
Try to understand the basic way of grouping happening in Nav then go ahead until or unless you will get tired if you will go with your own way.
what do you mean unnecessary variable?
if you advice me to use this code, it can export
but only raw data... not grouping
it export raw data