NetTalk Central

Author Topic: locator not appearing on a numeric field  (Read 5294 times)

MikeR

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
    • Email
locator not appearing on a numeric field
« on: October 20, 2018, 09:06:10 AM »
I have a netwebbrowse
all the fields in the browse show a locator exempt the field that is a long type in the database
it is defined as a string in the browse
i have tried default, position,search as locator type
it is also the unique key
what do i do to make the locator appear ?

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: locator not appearing on a numeric field
« Reply #1 on: October 21, 2018, 09:17:09 PM »
The same goes for me - 10.35

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: locator not appearing on a numeric field
« Reply #2 on: October 21, 2018, 09:34:26 PM »
post an example.

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: locator not appearing on a numeric field
« Reply #3 on: October 21, 2018, 10:23:06 PM »
Try this.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: locator not appearing on a numeric field
« Reply #4 on: October 26, 2018, 09:45:43 PM »
Hi Neils,

thanks for the example.
(Aside: If you include the .sln file, you need to include the .cwproj file. I don't need the .sln, but if you include sln then you _must_ include cwproj.)

Ok, back to the problem. Actually what's happening is that the locator is being "smart". A number locator is a position locator, but all the data is already visible, so it serves no purpose. To get a position locator you need more data than is visible in the one page in the browse. So if you add more data, then sort by Number it appears...

The search locator is different because it is a "range" type locator - meaning that even if the data has a small set of records, the locator can make it smaller...

cheers
Bruce

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: locator not appearing on a numeric field
« Reply #5 on: October 29, 2018, 01:20:13 AM »
Hi Bruce

Thanks for the answer. It makes perfect sense.

Regards Niels