NetTalk Central

Author Topic: Problem with locator and finding a value greater then the last  (Read 3094 times)

Matthew

  • Full Member
  • ***
  • Posts: 137
    • View Profile
    • Email
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 )

Quote
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

Matthew

  • Full Member
  • ***
  • Posts: 137
    • View Profile
    • Email
Re: Problem with locator and finding a value greater then the last
« Reply #1 on: March 12, 2012, 12:11:14 AM »
Does anyone have similar problem?

I still can't find any solution to fix this.

Regards,
Matthew

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11239
    • View Profile
Re: Problem with locator and finding a value greater then the last
« Reply #2 on: March 12, 2012, 02:34:53 AM »
sorry for the delay Matthew - I've been out the office last week in the UK.
I'll be investigating this a bit closer this week.

cheers
Bruce

Matthew

  • Full Member
  • ***
  • Posts: 137
    • View Profile
    • Email
Re: Problem with locator and finding a value greater then the last
« Reply #3 on: March 28, 2012, 11:10:44 PM »
Hello Bruce.

Any solution to the problem with locator?

Regards,
Matthew

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11239
    • View Profile
Re: Problem with locator and finding a value greater then the last
« Reply #4 on: April 02, 2012, 02:15:05 AM »
fixed in 6.27