Problem with MARKEDONLY filter.

easy-navi
Member Posts: 31
Hello,
My problem is:
I have a table and some records are set as MARKED. And now I need to SHOW ONLY NON-MARKED records.
I don't know how to set such a filter. :shock: I tried
record.MARKEDONLY(false)
but it didn't gave a result. ](*,)
Please help,
My problem is:
I have a table and some records are set as MARKED. And now I need to SHOW ONLY NON-MARKED records.
I don't know how to set such a filter. :shock: I tried
record.MARKEDONLY(false)
but it didn't gave a result. ](*,)
Please help,
http://www.reinwestuj.pl Inwestuj w nieruchomości. Condohotele, aparthotele.
0
Comments
-
Hello,
Well function Rec.MARKEDONLY(TRUE); can show only marked =TRUE.
I think You have to invert marking before that..
From Help:Activates a special filter. After you use this function, your view of the table only includes records marked by this function.
[IsMarkedOnly :=] Record.MARKEDONLY([SetMarkedOnly])
Parameters
Record
Type: Record
A record from the table for which you want to activate the special 'mark' filter.
SetMarkedOnly
Type: Boolean
Changes the state of the special filter. This parameter is optional.
If this parameter if true, only marked records are included. If this parameter is false, all records are included.0 -
Not sure where you are checking but you can do this.
IF NOT Rec.MARK THEN BEGIN
do whatever you need to do
END;0 -
Albertvh wrote:Not sure where you are checking but you can do this.
IF NOT Rec.MARK THEN BEGIN
do whatever you need to do
END;
markedonly(false)
repeat
rec.mark := not rec.mark;
until next = 0;
thus reversing the marks0 -
Albertvh wrote:Not sure where you are checking but you can do this.
IF NOT Rec.MARK THEN BEGIN
do whatever you need to do
END;Thx
I needed to delete UNMARKED records and leave only MARKED. Here is my code:
IF rec.FINDFIRST THEN
REPEAT
IF NOT rec.MARK THEN
rec.DELETE;
UNTIL rec.NEXT = 0;
p.s.
First I tried to do this way (but it don't work):
rec.MARKEDONLY(false);
Rec.DELETEALL;http://www.reinwestuj.pl Inwestuj w nieruchomości. Condohotele, aparthotele.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