NetTalk Central

Author Topic: How to prime a positional locator  (Read 3395 times)

rjolda

  • Sr. Member
  • ****
  • Posts: 329
    • View Profile
    • Email
How to prime a positional locator
« on: January 24, 2015, 06:43:52 AM »
Hi,
I am passing a value to a lookup table.
Lookup table has a Positional Locator.
What is the process to get the lookup table to the closest match (position) to the passed value?
( Don't want to filter as that will show only matching records and I want the table to show entries AROUND the passed value).
TIA
Ron Jolda
 

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: How to prime a positional locator
« Reply #1 on: January 25, 2015, 03:20:51 PM »
Hi Ron,

Try this...

Add these as parameters to your call to the lookup browse. I'm sorting and looking up based on the 2nd column in the browse. You should be able to see the parameters below in your server log window when you sort and locate records in a browse.

'ChartOfAccountsLookupBrowse_Sort' = 2
'_refresh_' = 'locate'
'Locator2chartofaccountslookupbrowse_chartofaccountslookup' = p_web.GSV('P:ChartCode')

rjolda

  • Sr. Member
  • ****
  • Posts: 329
    • View Profile
    • Email
Re: How to prime a positional locator
« Reply #2 on: January 25, 2015, 05:51:38 PM »
Hi Kevin,
Thanks - I see what you are doing.  Where do you embed this?
Thanks,
Ron

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: How to prime a positional locator
« Reply #3 on: January 26, 2015, 01:33:50 AM »
They are all parameters. I insert my browse on a form and when I do that there are template settings to add the parameters..