You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jo...@fimat.com on 2005/09/05 16:06:10 UTC
CForm field selection-list: "displayed" vs. "selected" values
Hi,
what's the best way to map the values selectable by a user in a
selection-list to other values (e.g. in selection-list we have
"human-readable" values, we want to map them to "internal" values)?
Thanks in advance.
Cheers
Re: CForm field selection-list: "displayed" vs. "selected" values
Posted by Jo...@fimat.com.
Jason, thank you very much for your quick reply. It solved the problem. I
will try out the other possibility too (using the flow-attr: module).
I felt my first message was too long and not to-the-point, so I sent
another request. Your response to my first thread arrived seconds after
that.
Regards
José Diaz Seng
Re: CForm field selection-list: "displayed" vs. "selected" values
Posted by Jason Johnston <co...@lojjic.net>.
Jose.Diaz.Seng@fimat.com wrote:
>
> Hi,
>
> what's the best way to map the values selectable by a user in a
> selection-list to other values (e.g. in selection-list we have
> "human-readable" values, we want to map them to "internal" values)?
>
See my reply to your previous thread; you use the "internal" value as
the @value of fd:item, and the "human-readable" value as an fd:label.
<fd:selection-list>
<fd:item value="MT935">
<fd:label>Monthly Interest Sales</fd:label>
</fd:item>
<fd:item value="MT950MS">
<fd:label>Money Statement</fd:label>
</fd:item>
</fd:selection-list>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org