NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: clarion on December 14, 2007, 11:36:41 AM

Title: Locator
Post by: clarion on December 14, 2007, 11:36:41 AM
Hi,

As stated in the documentation use a "unique key", I did, just made a autonumber ID field type Long, but the locator I would like to search a text field of the table, no help in searching the ID field (as I dont know the ID I`m searching for  :) ).

So my Question is.: Is the Locator field suppose to work as a "Search & find" or is it a locator/Search  only working the Unique key`s field ?

Cheers
Tor-Bjarne
Title: Re: Locator
Post by: Wolfgang Orth on December 14, 2007, 02:07:28 PM
So my Question is.: Is the Locator field suppose to work as a "Search & find" or is it a locator/Search  only working the Unique key`s field ?
Tor,
the unique, unchangable key is only to identify the record, it is not a locator.

If you need a locator on a NetWebBrowse then have a look at the bottom of the Options-tab, "Default Locator Field" and the appropriate Locator Type.

This should do somehow what you want. Its still a bit tricky as the contents of the Locator-entry remains - which is good as it 'filters' the browse in case you want to go to the next page which equals that condition. If you have found what you were looking for and you want to return to the entire list, IOW  clear that entry, it gets not cleared. There seems to be a little bug in this by now.

But its working mostly and Bruce knows about that already, so there is a good chance that it will be fixed.

bye
Wolfgang
Title: Re: Locator
Post by: clarion on December 16, 2007, 05:21:19 AM
Hi,

Thank you for your reply :)

I Know about the "Default locator Field" , it just dont work as expeted (for mee) , I`ve set the default locator to be the Item:Description field of my Item table, Locator type = "Contains".

But the only values I can search on is the value in the field that is pointed to by "Unique, Unchanging Key" (Item:ID).

Does the Item:Description field need to bee in a key to?

Cheers
Tor-Bjarne
Title: Re: Locator
Post by: Bruce on December 17, 2007, 12:17:21 AM
Hi Tor-Bjarne,

The locator works on the column that the browse is sorted on.
So click on the column heading (server side sorting) of any column, and the locator changes to work on that column.

For multi-column searches it's better to create a NetWebForm (with as many fields as you like) - see the DropFilter example for an example of that.

Cheers
Bruce
Title: Re: Locator
Post by: clarion on December 17, 2007, 03:47:27 AM
IT Works !!!  ;D

What a happy man I am today, this solved my search.

Was for a moment afraid I could only use "the built in search" with the Unchanging unique ID sort of field, that would make this useless for mee.

Thank you wery mutch Bruce Eh.. did I mention it`s a great product (But you probably already know that :) )

Cheers
Tor-Bjarne