NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: kevin plummer 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
-
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
-
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
-
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.
-
Perfect - that was the example I was looking for. No need to change template.
Cheers,
Kev