>From application.js I'm setting a property of
a qx.ui.mobile.page.NavigationPage.
photosPage.addListener("editPhoto", function(evt) {
photoPage.setPhoto(evt.getData());
photoPage.show();
}, this);
then the property inside the photopage looks like this:
properties: {
photo : {
check : "qx.data.model",
event: '__photoChanged',
apply: '__changePhoto'
}
},
The initialize function has among others:
var photo = this.__photo = new qx.ui.mobile.basic.Image();
this.getContent().add(photo)
and under members I have:
__changePhoto: function(value, old) {
if(value) {
var url = Routing.generate('api_document', {
id: this.getPhoto().getId(),
token : sgmobile.security.Token.getInstance().getTokenValue(),
apikey : sgmobile.security.Token.getInstance().apikey
});
this.__photo.setSource(url);
}
this.debug(value);
},
Problem:
this.__photo is undefined.
I'm sure it's possible, but I can't find it in the docs.
Best Regards,
Alex Knol
Movil: +34 693 206 868
Company: Pumiwex S.L.U.
PostBox: Apartado Correos 842, Camarles
Delivery: Plaza Don Diego de Leon 3, Camarles
Postal Code: 43894
Country: Espana
CIF B43969187
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel