NetTalk Central

Author Topic: locator Type  (Read 3942 times)

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
locator Type
« on: January 13, 2010, 05:28:48 AM »
Can I change the locator type for a browse that is embedded in a form at runtime?

I was thinking of adding a drop list the user could choose from.

I thought I saw an example posted previously but can find it in the search

Cheers,

Kevin

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: locator Type
« Reply #1 on: January 13, 2010, 08:35:06 PM »
Hi Kevin,

no, you can't change the locator field type.

However you can embed the browse on a (memory) form, and then you can put anything you like on the form. This is the approach I recommend for _any_ "more complicated filter than just a locator".

the example you saw was I think called DropList. It uses this approach to filter the Alais browse as I recall.

cheers
Bruce

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: locator Type
« Reply #2 on: January 14, 2010, 01:45:33 AM »
I've adopted this as my standard approach for browses so I can add extra buttons and stuff.

It would be handy to be able to change the locator type at run time or be able to override the default browse approach on the templates per column..

eg vendor code positional is a good locator but contains works better on description fields

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: locator Type
« Reply #3 on: January 14, 2010, 06:32:59 AM »
not a bad idea.
you can already change the locator at runtime, with the appropriate embed code.
the code for all the locators is generated, you just need to set the one you're using.
see example 49 (Locators).

but changing it on a column by column basis would be very cool.

confusing as anything for the end user methinks - but still quite handy.
« Last Edit: January 14, 2010, 06:34:30 AM by Bruce »

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: locator Type
« Reply #4 on: January 14, 2010, 06:10:24 PM »
Perfect - that was the example I was looking for. No need to change template.

Cheers,

Kev