ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

correct syntax for filters on Read Data functions?

stikkimorey 21 Aug, 2018
Hi

I am trying to filter results in a Data Read function using:
model.field/<:{data:field}
I also tried
model.field:/<{data:field}
But these are not working for me. What is the correct way to do it in Chronoconnectivity?

Many thanks
simelas 21 Aug, 2018
Answer
Hi,

use /- in case no data is sent . otherwise correct syntax is your first one

if for example model.id/<: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.
model.field/<:{data:field}/-
Ensure also that your data inputs are into a form ( chronoform or chronoconnectivity)

:-)
stikkimorey 22 Aug, 2018
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 :
{var:read_function_name.Model.field}

and now all good

:-)
simelas 17 Sep, 2018
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}


simelas
:-)
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com