Table filter strange problem

AST
Member Posts: 108
Hi,
Maybe someone had similar problem.
I have two identical tables:
- on local sql server (Table Filter works fine)
- on remote sql server (Table Filter doesn't work - omit some records)
I use the following combinations of filter:
Field1 (Boolean): Yes
Field2 (Boolean): No
I have the same properties of sql server, database and table and I use the same collation.
:?:
Maybe someone had similar problem.
I have two identical tables:
- on local sql server (Table Filter works fine)
- on remote sql server (Table Filter doesn't work - omit some records)
I use the following combinations of filter:
Field1 (Boolean): Yes
Field2 (Boolean): No
I have the same properties of sql server, database and table and I use the same collation.
:?:
0
Answers
-
Dou you have any suggestions why this prolem appear? :-k0
-
[Topic moved from Navision forum to SQL General forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
-
I just created one table on local server and exported it to remote server. I have the same data in both of tables. I tested 2 fileds of boolean type. On local server Table Filter works good but on remote server doesnt't work even in sipmle case (doesn't show all records which satisfy the conditions).
Example: I know that there are 8 records that meet conditions and I Navision show only 5.0 -
Try to look at the records directly to SQL. Check if there are correct values 0/1 instead false/true...0
-
I solved my problem
Becouse I didn't insert value to my table directly, but using outside application, I set sql property Allows Null to Yes (I didn't need import default values to this table). So I had NULL value insted of 0. Navision doesn't know NULL value?0 -
The trick I use for NULL is this.
If I want to filter for true, I set the following filter
setfilter(MYField,'<>%1',true);
this will include false, as well as NULL.
If I want to filter on false
setfilter(MYField,'<>%1',false);
This includes true as well as NULL.0 -
And this might help for finding NULL, I suppose?
SETFILTER("The Boolean",'<>%1&<>%2',TRUE,FALSE);
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!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