Buy Now
Sign in

correct syntax for filters on Read Data functions?

stikkimorey , August 21 2018, 13:04
stikkimorey 72
August 21 2018, 13:04 #379739
I am trying to filter results in a Data Read function using:
I also tried
But these are not working for me. What is the correct way to do it in Chronoconnectivity?
Many thanks
simelas 173
August 21 2018, 21:23 #379758
use /- in case no data is sent . otherwise correct syntax is your first one
if for example<:1 gives you a result by filtering correctly then check if your field {data:field} is containing the correct value or is at the right place.
Ensure also that your data inputs are into a form ( chronoform or chronoconnectivity)
stikkimorey 72
August 22 2018, 08:19 #379765
Thanks for that very clear answer.
There seemed to be a problem getting the {data:field} values, not sure why, but anyway I specified them from the read data function using :
and now all good
simelas 173
September 17 2018, 21:14 #380227
Hi Stikkimorey,
Maybe worth precising that:
- if you want to get data from a form then use {data:field} or {data:Model.field}
- if you want to get data from a read data function then use {var:read_function_name.Model.field}