NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: MikeR on October 20, 2018, 09:06:10 AM

Title: locator not appearing on a numeric field
Post by: MikeR 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 ?
Title: Re: locator not appearing on a numeric field
Post by: Niels Larsen on October 21, 2018, 09:17:09 PM
The same goes for me - 10.35
Title: Re: locator not appearing on a numeric field
Post by: Bruce on October 21, 2018, 09:34:26 PM
post an example.
Title: Re: locator not appearing on a numeric field
Post by: Niels Larsen on October 21, 2018, 10:23:06 PM
Try this.
Title: Re: locator not appearing on a numeric field
Post by: Bruce 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
Title: Re: locator not appearing on a numeric field
Post by: Niels Larsen on October 29, 2018, 01:20:13 AM
Hi Bruce

Thanks for the answer. It makes perfect sense.

Regards Niels