leerssej / google-refine

Automatically exported from code.google.com/p/google-refine
Other
0 stars 0 forks source link

GREL forEach function should be able to iterate through cells #194

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
As requested by Guy Y:

We have the following for the row template:

|{{cells["number"].value}}
|{{cells["escalation"].value}}
|{{cells["short_description"].value}}
|{{cells["problem_state"].value}}
|{{cells["rfc"].value}}

The issue is that we'd like to have the same template work regardless
of what the names of my columns are.

The suggestion was to use the following:
{{foreach(cells, c, "|" + c.value)}}
but this throws an error.  I think this should be a capability of GRELs forEach 
function.

Original issue reported on code.google.com by iainsproat on 11 Nov 2010 at 7:13