Get dataitem / filter on request form

madm
Member Posts: 92
i have created a report with the data items Customer / Value which shows items sales by customer.
Although working, i now need to filter on a particular field in the item card, so rather than adding the item dataitem to the report, i have done this as a GET item as :
Item.GET("Value Entry"."Item No.");
IF Item."FIELD" = ABC THEN
CurrReport.SKIP;
I have then decared a G.V (type Code) called ABC, and then added this into the request form.
The report does work by excluding the ABC entry when run. HOwever, if i want to put a string such as 1|2|3 into ABC then it does not skip any entries (presume it sees it as 1|2|3).
Is there anyway of filtering in this manner on the request form?
Thanks
Although working, i now need to filter on a particular field in the item card, so rather than adding the item dataitem to the report, i have done this as a GET item as :
Item.GET("Value Entry"."Item No.");
IF Item."FIELD" = ABC THEN
CurrReport.SKIP;
I have then decared a G.V (type Code) called ABC, and then added this into the request form.
The report does work by excluding the ABC entry when run. HOwever, if i want to put a string such as 1|2|3 into ABC then it does not skip any entries (presume it sees it as 1|2|3).
Is there anyway of filtering in this manner on the request form?
Thanks
0
Comments
-
which shows items sales by customer.
CUSTOMER/ITEM LEDGER ENTRIES
or
CUSTOMER/SALES INVOICE LINE
for your report?
I think that would make life easier :-k
What field from the item card do you need?0 -
Savatage wrote:which shows items sales by customer.
CUSTOMER/ITEM LEDGER ENTRIES
or
CUSTOMER/SALES INVOICE LINE
for your report?
I think that would make life easier :-k
What field from the item card do you need?
as rule, anything based on sales i use the value entry table as this includes any item charges etc etc.
the field i am trying to bring through, is not a standard field in Navision, but an addition in our database. It is basically a legal classification that we assign to the item, however, this is not carried though on to the sales etc. if i was to use the other suggested tables then i would have the same problem.
i could add the item as another data item, but then this could affect the running of the report?0 -
Format will be something like this:
Item.Setcurrentkey("Value Entry", "FIELD");
Item.setrange("Value Entry"."Item No.");
Item.setfilter("FIELD", ABC);
if not Item.FIND('-') then
CurrReport.SKIP;
It will work best if you use the proper key, you may have to add it.
-a0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions