tomasjanik / simile-widgets

Automatically exported from code.google.com/p/simile-widgets
0 stars 0 forks source link

foreach function problem #348

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have a list of discs and want to put a link to play the corresponding 
file in the TabularView provided by a .path colum:

ex:columns=".komponist, .label, concat('<a href=', .path , '>1</a>')"

Everything is fine so far, but some .labels (titels) consists of several 
discs and I want to do something like:

ex:columns=".komponist, .label, foreach(.path, concat('<a href=', .path , 
'>loop++</a>'))"

But with the foreach function there is no value in .path

Is this a bug or I doing something wrong?

Original issue reported on code.google.com by s...@gmx.at on 5 Jan 2010 at 8:16

GoogleCodeExporter commented 9 years ago
I am using Ubuntu 9.10, FF 3.5 and Chromium 4.0.249.30

Original comment by s...@gmx.at on 5 Jan 2010 at 8:22

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I have the solution now. I didnt know you have to use the variable "value" 
inside the 
foreach statement.

I use now:
ex:columns=".komponist, .label, foreach(.path, concat('<a href=', value , 
'><img 
src=audio.png></a>'))"

Now everything is ok

Original comment by s...@gmx.at on 6 Jan 2010 at 6:46

GoogleCodeExporter commented 9 years ago

Original comment by ryan...@csail.mit.edu on 23 Jun 2011 at 10:18