case sensitive
Navi_Learner
Member Posts: 356
Hi expert! I have four filters in my report and one is date and the rest of them are items. If I coded all items with non-case sensitive search, it works only for one item and also if I filter the date only, it retrieve zero page. Could you let me know how to fix it? thanks!
0
Comments
-
could you paste the txt code of the report?0
-
Also are you using "OR" with your filters?
filter: this or that0 -
Here is the code! Thanks!
filterprinter := '@'+"factory".GETFILTER(Printer);
"factory".SETFILTER(Printer,filterprinter) ;
filteritem1 := '@'+"factory".GETFILTER("Product Model 1");
"factory".SETFILTER("Product Model 1",filteritem1) ;
filteritem2 := '@'+"factory".GETFILTER("Product Model 2");
"factory".SETFILTER("Product Model 2",filteritem2) ;
It works only for the first search. I also have a date range, but after adding these codes, if only enter the date range, there is no data retrieved.0 -
what is this means? in first page only?in product model 1 only or what?It works only for the first searchI also have a date range, but after adding these codes, if only enter the date range, there is no data retrieved.
add this to returns all data if there's no filter entered on you require filter.
if GETFILTER(Printer) <> '' then begin
filterprinter := '@'+"factory".GETFILTER(Printer);
"factory".SETFILTER(Printer,'%1',filterprinter) ;
end;
if GETFILTER("Product Model 1") <> '' then begin
filteritem1 := '@'+"factory".GETFILTER("Product Model 1");
"factory".SETFILTER("Product Model 1",'%1',filteritem1) ;
end;
if GETFILTER("Product Model 2") <> '' then begin
filteritem2 := '@'+"factory".GETFILTER("Product Model 2");
"factory".SETFILTER("Product Model 2",'%1',filteritem2) ;
end;Sendoh
be smart before being a clever.0 -
I think this way is what sendoh means.
IF "factory".GETFILTER(Printer) <> '' then begin filterprinter := '@'+"factory".GETFILTER(Printer); "factory".SETFILTER(Printer,'%1',filterprinter) ; END; IF "factory".GETFILTER("Product Model 1") <> '' THEN BEGIN filteritem1 := '@'+"factory".GETFILTER("Product Model 1"); "factory".SETFILTER("Product Model 1",'%1',filteritem1) ; END; IF "factory".GETFILTER("Product Model 2") <> '' THEN BEGIN filteritem2 := '@'+"factory".GETFILTER("Product Model 2"); "factory".SETFILTER("Product Model 2",'%1',filteritem2) ; END;Navision noob....0 -
Thanks for your help! It works perfectly! 0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 329 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
