Re: list minilang question

Posted by marceloh on
URL: http://ofbiz.116.s1.nabble.com/list-minilang-question-tp142375p142377.html

I've tried your suggestion. Perfect !!!
Thanks.
Marcelo
--------------------

cjhowe wrote
try something like this:
<entity-and entity-name="FooEntity"
list-name="barList">
    <field-map field="bazField"/>
</entity-and>
<iterate list-name="barList" entry-name="quxEntry">
    <create-object class-name="java.util.HashMap"
field-name="quuxField">
        <field field-name="quxEntry"
type="java.util.Map"/>
    </create-object>
    <set field="quuxField.extraField" value="QUUUX"/>
    <field-to-list list-name="myFinalList"
field-name="quuxField"/>
</iterate>


--- marceloh <marcelo_hamra@hotmail.com> wrote:

>
>
> I need to program a service that retrieves a list of
> genericValues from the
> database using find-by-and tag and calculates a new
> value for each
> genercValue. How can I include this new column in
> the result list to be
> consumed in a table (form type "list") of a form?
>
> Thanks
> Marcelo
> --
> View this message in context:
>
http://www.nabble.com/list-minilang-question-tf2537347.html#a7069002
> Sent from the OFBiz - User mailing list archive at
> Nabble.com.
>
>