Hi all,
I've created a SQL view, based on sales invoice line (113) -and naturally some others like dimensions... I linked a table on it. Works fine.
If I open the table (the linked one) and filter on one customer, I find my records (2 lines in that case).
When I run a basic report based on it (show all lines sorted by customer), it finds only 1 record for the same customer!
If I do a loop by C/Cal (findset -repeat until), then all records appear.
I don't know, sometimes I miss something! ](*,)
Does anyone have a good idea where the report skips the line?
regards
Chris
#### Only one can survive ######
0
Answers
I've never seen this, and I have used a table based on view and on a report.
The view was a little slow, so I temporary stored into a temporary table and then printed it on the report.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
surely no filter. I found out that it's always the last record of the first field of my key:
key: customer,document no.
The last entry for each customer isn't appearing.
I can't believe what I see! I'm programming since 10 years but never seen this (ok, SQL option isn't as old as I'm)
But in my case, why making a fast sql view afterwhat parsing it and put every records in a tempTable and print it out? nonsense!
(Or Microsoft sense as far as this is a bug on report processing).
Or again, am I missing something?
I know in 5.0 the session virtual table (also a view) had a problem and it would crash on last record. The fix was in 5.0 sp1 or a hotfix that was released later.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I use 5 SP1 build 26084->hope I will receive a fix from MS.
I'm waiting for other fixes anyway \:D/
I'll give you feedback as soon as I can (if someone has same experience, let me know!)
regards
Chris
One work around for 5.0 executable for the session view was to change SELECT to SELECT DISTINCT
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
yes, I've a key build of 3 fields.
my select looks "good" as far as the returned datas are correct. Do you really want to see it? It takes data from table dimensions, sales invoice line, sales credit memo lines...
:-k
:oops: I knew I missed something ;-) maybe an "undocumented feature". You're right! as far as NAV handles this like a table, the PK should be UNIQUE IDENTIFIER!
I was confused by the select that returns data "like a report" and I totally forgot to set a correct PK in the linkedTable.
that was it! (strange that it works with non unique PK -only REPORTS are wrong)
thanx a lot...
Chris
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n