Filtering

valkatamake
Member Posts: 38
help me with this please
I have table that i need to filter
Example
TABLE
Code Description Number
AAAA doesn't matter doesn't matter
AAAA
AAAA
BBBB
BBBB
CCCC
CCCC
CCCC
CCCC
form must show me
CODE DESCRIPTION
AAAA
BBBB
CCCC
I have table that i need to filter
Example
TABLE
Code Description Number
AAAA doesn't matter doesn't matter
AAAA
AAAA
BBBB
BBBB
CCCC
CCCC
CCCC
CCCC
form must show me
CODE DESCRIPTION
AAAA
BBBB
CCCC
0
Comments
-
0
-
In Code:
rec.SETFILTER(code,'%1|%2|%3','AAAA','BBBB','CCCC');
On Form:
Field | Filter
Code | AAAA|BBBB|CCCC0 -
-
this is not the idea
if i have table "who is entering the building" (for example) and i have
john
adam
adam
adam
john
maria
maria
john
in the table could be milion records but only 5 names and i want to show me only uniques records ...0 -
](*,) sorry..0
-
in my meaning you need a DISTINCT like under sql. so you can store the data, before viewing, in a tempTable and show than the temp.Table
But, other question: why do you store the data in this style :?: I think here the "Number" is your Primary Key. Why not the Code :?: Whats the reason :?:Do you make it right, it works too!0 -
keys : Code, Description and last number ...0
-
This "Disctinct" problem is because the data are not normalized. Best is to have separate table where you will add the code each time you create some new entry and the code doesn't exists. Than you can make form over this table and you are done.
It means that you have table with "who enters" but you have second table "People" where you have list all names who ever entered...0 -
at least tell me how to check
If first record = second record
if john = adam ... :?: :-k0
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