NetTalk Central

Author Topic: Re: Clear Browse Locator  (Read 3726 times)

CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
Re: Clear Browse Locator
« on: August 22, 2017, 05:07:47 PM »
Hi, Bruce

You mentioned in a post here a couple of years ago, that the locator value was stored as a session value.  I'd like to delete that session value on opening a pop up select browse.  Could you tell me which session value contains the locator value.  Using 'Starts with' locator types.  I think you briefly mentioned clearing locators in the last user group, but I couldn't find it.

Thanks.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Clear Browse Locator
« Reply #1 on: August 22, 2017, 11:40:12 PM »
There are 2 values.
If you call your browse with the parameter
_refresh_=clearlocate
then they will be cleared.

The names are
'Locator1' & clip(p_name)
and
'Locator2' & clip(p_name)

p_name is the loc:divname set in the browse procedure.
This name contains the browse procedure name, but also the parent procedure.

  If loc:parent <> ''
    loc:divname = lower('%Procedure' & '_' & loc:parent)
  Else
    loc:divname = lower('%Procedure')
  End


Cheers
Bruce



CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
Re: Clear Browse Locator
« Reply #2 on: August 23, 2017, 10:50:16 AM »
Works a charm.  Thanks, Bruce.