I have an error when I map a form variable (JSON) to a table(HTML table tag). The form variable is a collection of complex data.

1
0
-1

Hello to the hole Bonita community, I’m new in Bonita 7.2, any help will be appreciated.
I hope you a nice day.
This is the problem:

I created a custom Widget with an HTML table, I use a parameter, a Collection of Complex Data that I pass to the widget and I try to show it in the wdget But I always get an error.
I'm watching the vaue of the collection in a text field and it is a correct JSON.
This is the tempalte code:

  1. <table data-toggle="table" calss="table table-striped table-bordered dataTable">
  2. <tbody>
  3. <tr>
  4. <th></th>
  5. <th>Reporting Entity</th>
  6. <th>Reporting entity name</th>
  7. <th>Job Profile</th>
  8. <th>Reporters code</th>
  9. <th>First Name</th>
  10. <th>Last Name</th>
  11. <th>Email</th>
  12. </tr>
  13. <tr ng-repeat="model in datosTablaLocal">
  14. <td>
  15. <input type="radio" name="groupName" ng-model="model.selected" />
  16. </td>
  17. <td>{{ model.entidadReportante }}</td>
  18. <td>{{ model.nombreEntidadReportante }}</td>
  19. <td>{{ model.departamento }}</td>
  20. <td>{{ model.perfilReportante }}</td>
  21. <td>{{ model.codigoReportante }}</td>
  22. <td>{{ model.nombre }}</td>
  23. <td>{{ model.apellidos }}</td>
  24. <td>{{ model.email }}</td>
  25. </tr>
  26. </tbody>
  27. </table>

This is the controller code:

  1. function ($scope) {
  2. $scope.datosTablaLocal = $scope.properties.datosTablaLocal;
  3. }

The JSON Code:

  1. [
  2. {
  3. "persistenceId": 111,
  4. "persistenceVersion": 1,
  5. "notificationId": "11",
  6. "entidadReportante": "Spain Other Aircraft Ground Handling Organization",
  7. "nombreEntidadReportante": "Atlantica",
  8. "departamento": "Operaciones Vuelo",
  9. "perfilReportante": "Tripulante de Vuelo",
  10. "codigoReportante": "Y15678909",
  11. "nombre": "Marta",
  12. "apellidos": "López Sánches",
  13. "email": "mlopez@naysa.es",
  14. "viaReporte": "Rapida",
  15. "fechaLocalCreacionReporte": "11-07-2016",
  16. "horaLocalCreacionReporte": "12:00:00",
  17. "tiempoDeReporteDesdeOcurrencia": "2",
  18. "narrativaOriginal": "Narrativa ",
  19. "lenguaje": "Leng",
  20. "nombreAdjuntos": "Adjuntos",
  21. "tipoReporte": "Tipo 1",
  22. "id": "211212",
  23. "fechaCreacion": "08-07-2016",
  24. "usuCreador": "C78715649",
  25. "fum": "9-10-2015",
  26. "uum": "G45678098",
  27. "fechaLocalCompletaCreacion": "5-5-2016",
  28. "selected": false
  29. }
  30. ]

THE ERROR, ANGULAR JS:

  1. vendor.min.js:102 Error: [$parse:syntax] http://errors.angularjs.org/1.3.18/$parse/syntax?p0=panel&p1=is%20an%20unexpected%20token&p2=7&p3=panel%20panel-default&p4=panel-default
  2. at Error (native)
  3. at http://localhost:8080/bonita/portal/resource/taskInstance/RegistroSimpleNotificacion/5.3/RevisarCamposNotificacion/content/js/vendor.min.js:6:417
  4. at lb.throwError (http://localhost:8080/bonita/portal/resource/taskInstance/RegistroSimpleNotificacion/5.3/RevisarCamposNotificacion/content/js/vendor.min.js:192:113)
  5. at lb.parse (http://localhost:8080/bonita/portal/resource/taskInstance/RegistroSimpleNotificacion/5.3/RevisarCamposNotificacion/content/js/vendor.min.js:190:406)
  6. at http://localhost:8080/bonita/portal/resource/taskInstance/RegistroSimpleNotificacion/5.3/RevisarCamposNotificacion/content/js/vendor.min.js:110:366
  7. at new n (http://localhost:8080/bonita/portal/resource/taskInstance/RegistroSimpleNotificacion/5.3/RevisarCamposNotificacion/content/js/runtime.min.js:1:10017)
  8. at Object.create (http://localhost:8080/bonita/portal/resource/taskInstance/RegistroSimpleNotificacion/5.3/RevisarCamposNotificacion/content/js/runtime.min.js:1:8209)
  9. at http://localhost:8080/bonita/portal/resource/taskInstance/RegistroSimpleNotificacion/5.3/RevisarCamposNotificacion/content/js/runtime.min.js:1:12401
  10. at Array.forEach (native)
  11. at Object.create (http://localhost:8080/bonita/portal/resource/taskInstance/RegistroSimpleNotificacion/5.3/RevisarCamposNotificacion/content/js/runtime.min.js:1:12373) <div pb-property-values="59c870ab-b357-45f3-b176-25f60338efb0" class="ng-scope">(anonymous function) @ vendor.min.js:102(anonymous function) @ vendor.min.js:76Xc @ vendor.min.js:70x @ vendor.min.js:59g @ vendor.min.js:51g @ vendor.min.js:51x @ vendor.min.js:59g @ vendor.min.js:51(anonymous function) @ vendor.min.js:51(anonymous function) @ vendor.min.js:52l @ vendor.min.js:56(anonymous function) @ vendor.min.js:217m.$digest @ vendor.min.js:124m.$apply @ vendor.min.js:127(anonymous function) @ vendor.min.js:17e @ vendor.min.js:36d @ vendor.min.js:17xc @ vendor.min.js:18Od @ vendor.min.js:17(anonymous function) @ vendor.min.js:252a @ vendor.min.js:165c @ vendor.min.js:32
No answers yet.
Notifications