ISEMPTY Return two different results

ex1720
Member Posts: 23
Hi, I'm experiencing a strange behaivour.
In one case the ReservEntryExist returns TRUE (NOT FALSE) and another FALSE (NOT TRUE). So I analized what's in NewReservEntry record with the debugger and magically, in TRUE and FALSE cases NewReservEntry has the same value.
How is possible to return (ISEMPTY) two different values(TRUE AND FALSE) with the same values in the Record evaluated (NewReservEntry)?
IF ReservEntryExist THEN
TESTFIELD("Job No.",'');
ReservEntryExist() : Boolean
ReservePurchLine.FilterReservFor(NewReservEntry,Rec);
NewReservEntry.SETRANGE("Reservation Status",NewReservEntry."Reservation Status"::Reservation,
NewReservEntry."Reservation Status"::Tracking);
EXIT(NOT NewReservEntry.ISEMPTY);
In one case the ReservEntryExist returns TRUE (NOT FALSE) and another FALSE (NOT TRUE). So I analized what's in NewReservEntry record with the debugger and magically, in TRUE and FALSE cases NewReservEntry has the same value.
How is possible to return (ISEMPTY) two different values(TRUE AND FALSE) with the same values in the Record evaluated (NewReservEntry)?
IF ReservEntryExist THEN
TESTFIELD("Job No.",'');
ReservEntryExist() : Boolean
ReservePurchLine.FilterReservFor(NewReservEntry,Rec);
NewReservEntry.SETRANGE("Reservation Status",NewReservEntry."Reservation Status"::Reservation,
NewReservEntry."Reservation Status"::Tracking);
EXIT(NOT NewReservEntry.ISEMPTY);
0
Best Answers
-
-
Ok, to rephrase myself:
The content of the record that is supplied has NO effect on the result of the ISEMPTY function.
The Filters on the record are making the difference.Jan Veenendaal5
Answers
-
ISEMPTY does not select the actual fields from SQL.0
-
-
I'm still confused, Yes, the matter is filters...okay....But the filters of the both records (when return true and return false) are not the same, but the record filtered yes. And ISEMPTY ask for the same record (with the filters of the record), so, If with this filters...the return the same record ??.
An example attached to the explanation could be interesing.
Thanks!!0 -
ISEMPTY simply does NOT return the record, is does NOT 'ask for a record'!
So whatever the filters are, the content of NewReservEntry will not be changed by ISEMPTY.Jan Veenendaal0 -
Jan_Veenendaal wrote: »ISEMPTY simply does NOT return the record, is does NOT 'ask for a record'!
So whatever the filters are, the content of NewReservEntry will not be changed by ISEMPTY.
Sorry I thought I was been clear enough explaining myself....Hi, I'm experiencing a strange behaivour.
In one case the ReservEntryExist function (EXIT(NOT NewReservEntry.ISEMPTY);) returns TRUE (NOT FALSE) and another FALSE (NOT TRUE).....
If not, I will reformulate the question.0 -
Ok, to rephrase myself:
The content of the record that is supplied has NO effect on the result of the ISEMPTY function.
The Filters on the record are making the difference.Jan Veenendaal5 -
Jan_Veenendaal wrote: »Ok, to rephrase myself:
The content of the record that is supplied has NO effect on the result of the ISEMPTY function.
The Filters on the record are making the difference.
Yes. Okay, it's clear.
Thanks.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