Hi
I have a browse on a MSSQL backend where I have overridden the view using prop:sql in the AfterSetview embed.
I use dummy file with 5 fields and a key made up of all fields as the unique key.
There are no filters in the template.
When I run the browse on the web, it returns 102 records, yet when I run in query analyzer it returns 113 records.
I ran TRACE and found that the query and backend were returning all 113 records!
(I was kind of hoping it was my query)
So I omitted all the code in the browse from AfterSetView all the way down to InsideBrowseLoop - 2 End of Loop
In AFterSetView, after setting the view, I put -
If loc:LocatorBlank = 0 or Loc:LocatorValue <> '' or loc:LocatorType = Net:Position or loc:LocatorType = Net:None
Loop
Next(ThisView)
If errorcode()
BREAK
END
OMIT('***USEMINE***')
In End of Loop I put -
***USEMINE***
loc:viewstate = p_web.escape(p_web.Base64Encode(clip(DUM:col5)))
do BrowseRow
Now it returns all 113 records!
BUT WHY do I have to do this?
AND What does this mean regarding other browses? Do I need to double check each one?
Has anyone else seen this behavior?
I'm running 4.37.
<-Edit-> This is a file loaded report - no locators, no sorting, no ranges, no filters, no buttons except the close button, green bar is checked, Show column Headings is checked, no children, user must be logged in and Ignore Key not being unique is checked.
<-End Edit ->
Chris