baffled

Reinhard
Member Posts: 249
First I reset and then set some ranges and filters on Shipping Binder
Then when I do
I always get the message indicating nothing was found in the shipping binder. however, when I go to this table and manually apply those filters there is definitely a record there. :-k :?:
Here is filter string:
Also when I debug I see that the message is accurate, both the filter string and that no record was found. Any idea why this may be happening? Why would a table behave differently when I enter it manually vs through code?
I know this may be a very hard question to answer. Hopefully someone sees something simple...
Then when I do
MESSAGE("Shipping Binder".GETFILTERS); IF "Shipping Binder".FIND('-') THEN "Shipping Binder".printDoc ELSE MESSAGE('This shipping configuration was not found in the database');
I always get the message indicating nothing was found in the shipping binder. however, when I go to this table and manually apply those filters there is definitely a record there. :-k :?:
Here is filter string:
Stage: 1, Package Qty. Max.: 1..|0, Package Qty. Min.: 0|..1, Dest. Country: INT|UG|'', Customer: '', Shipping Agent: NNR|NNR|''
Also when I debug I see that the message is accurate, both the filter string and that no record was found. Any idea why this may be happening? Why would a table behave differently when I enter it manually vs through code?
I know this may be a very hard question to answer. Hopefully someone sees something simple...

0
Comments
-
Just a first impression, see what taking out the extraneous | at the end of those last two does. It's been a while but I believe I've had trouble with those before... that's all I see at first glance."OMG ALL MY DATA IS GONE"
"Show All..."
"Oh..."0 -
Again, I'm sure someone will correct me if I'm wrong, but I think in that situation OR <blank> is not the same as ALL, it means if there isn't a code specified... meaning all the entries with <blank> in the Country or Shipping Agent... should be pretty easy to test using a report filter."OMG ALL MY DATA IS GONE"
"Show All..."
"Oh..."0 -
1) Are you using .RESET before setting the filters? There is possibility that there are filters in another filtergroups which are not displayed when using the GETFITLERS function.
2) There are situations when using MS SQL when some entries are not "visible". Which version and database you are using?
3) Off-topic Tip: What you want to do when the entry is not found? Continue in processing? I never saw using Message when something is not found, may be only when debugging...0
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