You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by "Gaasch, Derek" <dg...@montana.edu> on 2003/04/02 23:10:32 UTC
RE: set multivalue intake field in screen class
Sorry for the delay....
I have a Categorization intake group.... Within it, categoryId is a
multi-valued field of integers.
In the Java code where I want to retrieve the array of categoryIds, I have
the following:
int[] catIds = (int[])(group.get(CATEGORYIDFIELDNAME).getValue());
where group is the CategorizationGroup
>From a VM screen, the following loops through each categoryId of the
categorizer group & prints it:
#foreach ($val in $categorizerGroup.CategoryId.getValue())
$val<br>
#end
Hopefully this is helpful. This should really be on the list, so I've cc'ed
the list
Good luck.
-d
-----Original Message-----
From: Barine [mailto:rhysae@yahoo.com]
Sent: Monday, March 31, 2003 9:12 PM
To: dgaasch@montana.edu
Subject: question - RE: set multivalue intake field in screen class
hi,
I saw your post on the turbine user list, and I was hoping you could tell me
how to retrieve the values from a multiValued Intake field. I read your
post (below), and it's exactly what I'm trying to do - retrieve the selected
values from a multiple select box - but I'm stuck. you seem to be the only
one on the user list that has even attempted this, and I would really
appreciate any suggestions.
thanks,
Barine Duman
-----Original Message-----
From: Gaasch, Derek [mailto:dgaasch@montana.edu <ma...@montana.edu>
]
Sent: Sunday, February 16, 2003 5:24 PM
To: 'Turbine Developers List'
Subject: RE: set multivalue intake field in screen class
Intake does have the ability to map multiple values to a field:
<field name="xxx" key="xxx" type="int" displayName="xxx:"
multiValued="true">
It works fine if you have a select box in a form, and perform a post -- i.e.
all the selected values are mapped to the appropriate field of the Intake
object. The multi-valued list is a list of workingdogs.Record objects, and
can be retrieved from a velocity screen...
However, I want to set those values before any post is performed. But doing
so has proven to be a convoluted task...
=d