HTML5 Data Bindings Support Product Page

Answered

Json query and filter

Asked 24 Mar 2014 09:34:13
1
has this question
24 Mar 2014 09:34:13 Massimo Risca posted:
I'm a (old) spry-dataset user. I'm trying to use HTNL5 data bindings in the same way but I can't understand how can I do a dynamic query on the dataset or starting from the user request (ie from forms). In Spry I previously used a java function like filterdata() or syntax like : "var pv = new Spry.Data.XMLDataSet("db/db.xml", "states/state[region = 'Italy']", {sortOnLoad: "pv_estesa", sortOrderOnLoad: "ascending"});". For sorting and formatting data I have bought DMX Formatter, but for filter dataset what can I do? Thanks

Replies

Replied 24 Mar 2014 09:51:18
24 Mar 2014 09:51:18 Teodor Kuduschiev replied:
Hello Massimo,
Are you using a json file as a data source?
Replied 24 Mar 2014 09:52:54
24 Mar 2014 09:52:54 Massimo Risca replied:
Hi, yes I'm using it. I can view and format (with formatter) data correctly but how can i filter?
Replied 24 Mar 2014 09:59:52
24 Mar 2014 09:59:52 Teodor Kuduschiev replied:
You can use the collections filters in order to filter the results. For more complex queries you can use the DMXZone Database Connector PHP/ASP with a Database Source in order to build more-advanced queries.
Replied 24 Mar 2014 10:27:02
24 Mar 2014 10:27:02 Massimo Risca replied:
It works fine, thank you.
Replied 24 Mar 2014 14:39:08
24 Mar 2014 14:39:08 Massimo Risca replied:
Please and about filtering dataset starting from the user request in a form field? Do you have some suggest/example?

Reply to this topic