HTML5 Data Bindings Support Product Page

In progress

Data Bindings No Working

Reported 16 Apr 2014 03:28:54
have this problem
16 Apr 2014 03:28:54 Julio C posted:
I cannot make the Data Bindings to work.
As an example, I used jut a single table:
<!doctype html>
<meta charset="utf-8">
<title>Untitled Document</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 "Psych Meds" */
{"id": "Psych Meds", "url": "dmxDatabaseSources/PsychMeds.php?limit=25", "dataSourceType": "database", "dataType": "jsonp"}
/* END dmxDataSet name "Psych Meds" */


<table width="500" border="1" data-binding-repeat="{{Psych}}" data-binding-id="repeat1" >
<td width="20%">Med ID</td>
<td width="25%">Med Name</td>
<td width="24%">Med Type</td>
<td width="31%">Med Subtype</td>
<td><div data-binding-id="repeat2" data-binding-repeat="Psych">{{["Psych Med ID"]}}</div></td>
<td><div data-binding-id="repeat3" data-binding-repeat="Psych">{{["Psych Med Name"]}}</div></td

Even when I have already chosen a Repeat Region on a table, when I try to add the data code, it indicates "You are inserting a detailed region without a repeat region." Then I end up adding another repeat region to the data field, and no actual data shows on the browser. Could you please give me an idea what is going on?
Thank you.


Replied 16 Apr 2014 08:40:16
16 Apr 2014 08:40:16 Teodor Kuduschiev replied:
Hello Julio,
Please make sure to apply the repeat region on the tr tag (select the tr tag in the properties inspector) and then it should be working fine.
Replied 17 Apr 2014 01:27:09
17 Apr 2014 01:27:09 Julio C replied:
I applied the repeat region to the tr tag and get the same results, "You are inserting a detailed region without a repeat region."
<tr data-binding-repeat="{{Psych}}" data-binding-id="repeat1">
<td><div data-binding-id="repeat2" data-binding-repeat="Psych">{{["Psych Med ID"]}}</div></td
><td><div data-binding-id="repeat3" data-binding-repeat="Psych">{{["Psych Med Name"]}}</div></td
><td><div data-binding-id="repeat4" data-binding-repeat="Psych">{{["Psych Med Type ID"]}}</div></td
Replied 17 Apr 2014 08:34:31
17 Apr 2014 08:34:31 Teodor Kuduschiev replied:
I see the issue on your page.. Your data source name contains a blank space. Please remove it and change the data source name to something without a blank space in the name, like: PsychMeds or Psych_Meds Then you won't be asked to insert repeat regions inside the existing repeat region.
Replied 19 Apr 2014 15:29:53
19 Apr 2014 15:29:53 Julio C replied:
I was using the text “PsychMeds”. I deleted all the DMXzone generated folders, and that’s how I was able to make this thing work. It appears that the DMXzone script is not overwriting some important DMXzone-generated file(s), and that likely causes the problems I encountered, including the issue I noted about the DMXzone connector:
[ When I test the database source, "Database Source Testing" -> View in Browser, I get this a lot of times after the data:
{"code":2,"message":"First parameter must either be an object or the name of an existing class","file":"D:\\xampp\\htdocs\\CRSys\\ScriptLibrary\\dmxDatabaseConnector\\sqlBuilder.php","line":826,"trace":null}. ]
Replied 20 Apr 2014 10:25:05
20 Apr 2014 10:25:05 Teodor Kuduschiev replied:
We are currently checking the "First parameter must either be an object ..." issue.

Reply to this topic