[AC-3420] Error with models in the new Appcelerator update
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Resolved |
| Resolution | Duplicate |
| Resolution Date | 2016-03-29T10:15:30.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | n/a |
| Labels | n/a |
| Reporter | Anna |
| Assignee | Fokke Zandbergen |
| Created | 2016-03-29T08:31:45.000+0000 |
| Updated | 2016-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.
Thanks [~amurcia], this probably duplicates ALOY-1474 but could you show me what the model attributes look like? Does it have a
titattribute?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" } } }
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
Now, I've updated alloy and my version is $ alloy -v 1.8.3 but the problem still happen
[~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.
Thank you.