I have a browser and position locator. When I try to find a value greater than the last
browser is set on the previous value than the last and the last value is not seen.
This problem occurs both on TPS and SQL backend (this can be seen in NetTalk Example 49).
It seems to me that the problem is in the instructions after p_web._SetView (template netweb.tpw )
if loc:direction = 2
If loc:LocatorType = Net:Position or loc:LocatorType = Net:Date
ThisView{prop:Filter} = loc:FilterWas
End
If loc:first = 0
Set(thisView)
Else
#! rqd for TPS, not sure about sql
p_web._bounceView(ThisView)
If %Primary{prop:sqldriver}
#!Set(ThisView) ! workaround to RESET bug done in BounceView
Reset(ThisView,loc:firstvalue)
Else
Reget(%Primary,loc:firstvalue)
Reset(ThisView,%Primary)
End
End
Previous(ThisView)
loc:direction = -1
loc:nextdisabled = 1
Cycle
End
When I remove Previous(ThisView) the problem disappears, but sometimes there are duplicate records.
Regards,
Matthew