**** BEGIN LOGGING AT Fri Mar 02 02:59:58 2012 Mar 02 06:57:55 hmm. gvoice week 1 download numbers.. webos: 500, Android: 4, PlayBook: 25. XO download numbers after 2 days: webos: 30, PlayBook: 0 Mar 02 06:58:39 i guess gvoice has only been out 5 days, not a full week on playbook though Mar 02 12:30:35 afternoon Mar 02 12:43:57 morning here Mar 02 13:42:03 EricBlade1, sugardave hello. there? Mar 02 13:55:00 in this code snippet: http://codepad.org/u18pgnKP - how can i make a component (like questionNr in my case) to get one property from the owner property? src: "./images/quiz/iPad_quiz_" + this.questionNr + ".png" does not work Mar 02 14:01:43 let me check the code Mar 02 14:01:58 is this for enyo 1 or 2? Mar 02 14:04:26 a few questions Mar 02 14:05:07 swisstomcat, enyo1 Mar 02 14:05:13 i use it for hp touchpad application Mar 02 14:05:19 ok Mar 02 14:05:55 this might be the problem: src: "./images/quiz/quiz_" Mar 02 14:06:00 try without ./ first Mar 02 14:06:21 no, the problem is that at this point: {kind: "Image", name: "questionNr", src: "./images/quiz/iPad_quiz_" + this.questionNr + ".png", className: "question-nr"} Mar 02 14:06:35 this.questionNr is undefined (maybe because create has not been called yet) Mar 02 14:07:06 and src becomes ./images/quiz/iPad_quiz_undefined.png Mar 02 14:08:12 you could try to add the initialization of questionNr to the create function of the kind Mar 02 14:08:31 i assume you want to pass in that number externally anyway at some point? Mar 02 14:11:11 swisstomcat, i want to create slides dinamically in a pane, and all slides will be of kind: QuizQuestion. and i want to use something like: this.createComponent({kind: "QuizQuestion", questionNr: 23}); Mar 02 14:11:24 and maybe other data that will serve as content for the new component Mar 02 14:11:37 right Mar 02 14:12:27 any chance to do that? Mar 02 14:13:07 yeah, that should work Mar 02 14:13:11 you have a pane kind Mar 02 14:13:27 and in that you create components of your QuizQuestion kind Mar 02 14:13:39 yes. but the code i pasted in codepad does not work Mar 02 14:13:50 you have to change some things Mar 02 14:14:03 so your kind wouldn't be a pane, it would be a control Mar 02 14:14:31 and then you would add questionNr as published attribute Mar 02 14:14:33 like so Mar 02 14:14:41 published: { questionNr: "", Mar 02 14:15:55 swisstomcat, changed that: http://codepad.org/jcjTtXyU . and it still doesn`t work Mar 02 14:17:23 how does the rest of the code look like? the one that created the components? Mar 02 14:18:40 http://codepad.org/fZyyS3OH -- this is onCreateView from the pane Mar 02 14:20:20 i tried to change src content in create() function of image parent, but still no success Mar 02 14:21:04 a solution would be to change content after the slide it is rendered with default content, but i don`t want that Mar 02 14:24:38 any idea? Mar 02 14:26:04 looking at it Mar 02 14:26:44 hold on Mar 02 14:26:48 (multitasking) Mar 02 14:35:40 back Mar 02 14:36:17 need to look at some of my code Mar 02 14:37:35 shure. i also tried to add this function: http://codepad.org/ceNarZqj , but it still renders the image with the old src Mar 02 14:53:44 please let me know if you get any idea? Mar 02 14:53:52 without the question mark Mar 02 15:15:33 back, had a phone call Mar 02 15:16:45 welcome back. i`m still stuck with my problem, couldn`t find a solution yet Mar 02 15:24:46 let's see Mar 02 15:26:30 you said you tried with setSrc in the create() function? Mar 02 15:29:10 yes. anyway in create something strange happens Mar 02 15:29:41 if i do console.log(this.$) , it logs $ object which contains questionNr. but if i do console.log(this.$.questionNr), it logs undefined Mar 02 15:32:00 mm it seems to work now, if i use setSrc inside render function, before this.inherited(arguments) Mar 02 15:32:18 hmm Mar 02 15:32:32 that's odd **** ENDING LOGGING AT Sat Mar 03 02:59:59 2012