Iterate without knowing the key labels

0 views
Skip to first unread message

focusfriend

unread,
Feb 15, 2008, 6:13:42 AM2/15/08
to Appcelerator Platform SDK
I've a key/value list with random key labels. Can I iterate like this?

<app:script>
$MQ('l:do.iterate', [{'00':'2'},{'01':'23'}]);
</app:script>

<app:iterator on="l:do.iterate then execute">
#{iterator_key}, #{iterator_value} <br>
</app:iterator>


There's a previous entry that shows an almost similar example, but
only with a value list (no keys):

http://groups.google.com/group/appcelerator-platform-sdk/msg/632f1093e351eb16

-Ivo

Jeff Haynie

unread,
Feb 15, 2008, 10:28:53 AM2/15/08
to appcelerator...@googlegroups.com
You can't really do that today - but that's an interesting feature.  If you don't mind, can you open a JIRA for this at http://jira.appcelerator.org and we'll try and add that?
--
Jeff Haynie
http://blog.jeffhaynie.us

focusfriend

unread,
Feb 15, 2008, 10:53:24 AM2/15/08
to Appcelerator Platform SDK

sascha....@gmail.com

unread,
Feb 15, 2008, 4:08:59 PM2/15/08
to Appcelerator Platform SDK
Update: it's not a real key/value list but rather an array. Was just
looking for a way to easy display:

00 2
01 23
...

Never mind, I'll add real keys and use your nested iterator approach.

-Ivo
Reply all
Reply to author
Forward
0 new messages