NetTalk Central

Author Topic: Aauto-complete - how to filter  (Read 3174 times)

John Fligg

  • Sr. Member
  • ****
  • Posts: 361
    • View Profile
    • Ambrit Software
    • Email
Aauto-complete - how to filter
« on: February 14, 2012, 09:35:24 AM »
This is an amazing addition. Thank you Bruce.

In the template there is an opportunity to filter. So I entered:

Pat:ContactGUID = p_web.GSV('Inv:ContactGUID') hoping to get just the records belonging to a previously selected contact. However I get a compiler error not allowing me to enter a conditional expression.

How can I filter this as Value field is disabled.

I did try the relevant embed point but it did not like the Cycle statement. i.e.

If Pat:ContactGUID <> p_web.GSV('Inv:ContactGUID')
Cycle
End

Thanks

John


bruce2

  • Full Member
  • ***
  • Posts: 108
    • View Profile
    • Email
Re: Aauto-complete - how to filter
« Reply #1 on: February 14, 2012, 08:25:00 PM »
Build the filter the same as for a browse filter.
Remember the filter is ultimately a string passed to the backed.
Tip: start with a ' and go from there.