NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: John Fligg on February 14, 2012, 09:35:24 AM

Title: Aauto-complete - how to filter
Post by: John Fligg 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

Title: Re: Aauto-complete - how to filter
Post by: bruce2 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.