Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3420] Error with models in the new Appcelerator update

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDuplicate
Resolution Date2016-03-29T10:15:30.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterAnna
AssigneeFokke Zandbergen
Created2016-03-29T08:31:45.000+0000
Updated2016-03-29T10:18:50.000+0000

Description

I've already update my Appcelerator with the 26 March release. I have now this problem with models in my app (Android and iOS): The code:
<TextField id="titulo" hintText="Título"  onFocus="onTextFieldFocus" onChange="actualizaTitulo" value="{tit}"></TextField>
The error:
[ERROR] :  TiExceptionHandler: (main) [425,145864] ----- Titanium Javascript Runtime Error -----
[ERROR] :  TiExceptionHandler: (main) [0,145864] - In undefined:5,8
[ERROR] :  TiExceptionHandler: (main) [0,145864] - Message: Uncaught ReferenceError: tit is not defined
[ERROR] :  TiExceptionHandler: (main) [0,145864] - Source: ((__t=(tit))==null?'':__t)+
[ERROR] :  V8Exception: Exception occurred at undefined:5: Uncaught ReferenceError: tit is not defined
[ERROR] :  ViewRootImpl: sendUserActionEvent() mView == null
It happens in all sites on my code that I'm using $model options.

Comments

  1. Fokke Zandbergen 2016-03-29

    Thanks [~amurcia], this probably duplicates ALOY-1474 but could you show me what the model attributes look like? Does it have a tit attribute?
  2. Anna 2016-03-29

    exports.definition = { config: { columns: { "idFoto": "INTEGER PRIMARY KEY AUTOINCREMENT", "idGaleria": "integer", "imagen": "text", "imagen_path": "text", "autor": "text", "pie": "text", "tit": "text", "publ": 'integer' }, adapter: { type: "sql", collection_name: "FotoG", idAttribute: "idFoto" } } }
  3. Anna 2016-03-29

    My versions of npm, ti, and alloy can be the problem? $ npm -v 2.11.3 $ ti -v 5.0.5 $ alloy -v 1.7.19
  4. Anna 2016-03-29

    Now, I've updated alloy and my version is $ alloy -v 1.8.3 but the problem still happen
  5. Fokke Zandbergen 2016-03-29

    [~amurcia] thanks a million for the extra info. I managed to nail it and I'm fixing - right now - it as ALOY-1477. Please watch that ticket.
  6. Anna 2016-03-29

    Thank you.

JSON Source