HTML5 Data Bindings Support Product Page
In progress
dependent-dropdown not working
Reported 17 Aug 2014 18:10:31
1
has this problem
17 Aug 2014 18:10:31 Andre Bender posted:
I've created a dependent dropdown as shown in one of your videos. The second select is not populating any values...<!doctype html> <html> <head> <meta charset="UTF-8"> <title>Unbenanntes Dokument</title> <script type="text/javascript" src="ScriptLibrary/jquery-latest.pack.js"></script> <script type="text/javascript" src="ScriptLibrary/dmxDataBindings.js"></script> <script type="text/javascript" src="ScriptLibrary/dmxDataSet.js"></script> <script type="text/javascript"> /* dmxDataSet name "dsCustomer" */ jQuery.dmxDataSet( {"id": "dsCustomer", "url": "dmxDatabaseSources/dsnCustomers.php?limit=25", "dataSourceType": "database", "dataType": "jsonp"} ); /* END dmxDataSet name "dsCustomer" */ /* dmxDataSet name "dsProjectsInWork" */ jQuery.dmxDataSet( {"id": "dsProjectsInWork", "url": "dmxDatabaseSources/dsnProjectsInWork.php?limit=25", "dataSourceType": "database", "dataType": "jsonp"} ); /* END dmxDataSet name "dsProjectsInWork" */ </script> <script type="text/javascript" src="ScriptLibrary/dmxDataFilters.js"></script> </head> <body> <form name="form1" method="post" action=""> <p> <select name="select" id="select" data-binding-repeat-children="{{dsCustomer.data}}" data-binding-id="select"> <option value="{{CUSTOMID}}">{{Customer}}</option> </select> </p> <p> <select name="select2" id="select2" data-binding-repeat-children="{{dsProjectsInWork.data.where( "CUSTOMID", "==", "$FORM.select" )}}" data-binding-id="select2"> <option value="{{PROJECTID}}">{{Project}}</option> </select> </p> </form> </body> </html>
Replies
Replied 18 Aug 2014 16:19:02
18 Aug 2014 16:19:02 Andre Bender replied:
Any ideas? Is the generated code correct? Thanks for any help
Replied 19 Aug 2014 16:14:45
19 Aug 2014 16:14:45 Andre Bender replied:
It looks like it's working when I just filter the second recordset with the {{$FORM.select}} from the first.
Using the formatter (www.dmxzone.com/go/22124/html5-data-bindings-formatter) didn't work for me.
Using the formatter (www.dmxzone.com/go/22124/html5-data-bindings-formatter) didn't work for me.
Replied 20 Aug 2014 06:42:39
20 Aug 2014 06:42:39 Teodor Kuduschiev replied:
Please provide a link to your site, where we can check what is being returned on your page.
Replied 20 Aug 2014 12:44:06
20 Aug 2014 12:44:06 Andre Bender replied:
I'll send you the links by email @ support.
Replied 20 Aug 2014 13:19:47
20 Aug 2014 13:19:47 Teodor Kuduschiev replied:
This will be improved in the upcoming update of the extension.