<div dir="ltr"><div class="gmail_quote">On Sat, Jun 4, 2011 at 1:19 PM, Marco Martin <span dir="ltr">&lt;<a href="mailto:notmart@gmail.com">notmart@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5"><br>
</div></div>try to do<br>
for (item in map) {<br>
     print(item)<br>
     print(map[item])<br>
}<br>
<font color="#888888"><br>
<br></font></blockquote><div><br></div><div>Well actually, i&#39;m getting the data ( dataSource.data[&quot;PowerDevil&quot;][&quot;Available profiles&quot;] ) inside Component.onCompleted and then running the for loop on it. But the execution stops saying:</div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div>TypeError: Result of expression &#39;dataSource.data[&quot;PowerDevil&quot;]&#39; [undefined] is not an object.</div><div><br></div><div>So it never goes into the for loop (I checked this by putting normal prints in the for loop). The above error occurs at all places in the plasmoid wherever I call the engine, but still gives the data. Here, it doesn&#39;t.</div>
<div><br></div></div></div>