You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Hugo Marcelino <hu...@telindus.pt> on 2005/05/05 12:51:54 UTC

Help needed in getting the label from a selection-list.

Hi , my name is Hugo Marcelino.

I need some help. 
I'm using cocoon-2.1.7.

I have a form that has 4 selection-lists and there is a dependency between them, that is , the second selection-list is loaded with content selected in the first selection-list and so on.

the four selection list, after filled, will generate a new row in a repeater widget.

The second part of the form, i will filter the  repeater widget and generate a new one.
Like (sql distinct).

Now i need to set a value (like default value)in a normal field that is correspondent to the row of the first repeater widget and my idea was to concatenate the label of the four selection-lists.

I have search and i coudn't find anything that could help me.

Does anyone knows how to do it ?
If it is not possible in is this version, is it possible to be done in the next version ? 
Because i believe that it is an excellent functionality to be implemented.

Hugo Marcelino
05-05-2005

Re: Help needed in getting the label from a selection-list.

Posted by oceatoon <t....@systheo.com>.
Hugo Marcelino wrote:

> 
> Hi , my name is Hugo Marcelino.
> 
> I need some help.
> I'm using cocoon-2.1.7.
> 
> I have a form that has 4 selection-lists and there is a dependency between
> them, that is , the second selection-list is loaded with content selected
> in the first selection-list and so on.
> 
> the four selection list, after filled, will generate a new row in a
> repeater widget.
> 
> The second part of the form, i will filter the  repeater widget and
> generate a new one. Like (sql distinct).
> 
> Now i need to set a value (like default value)in a normal field that is
> correspondent to the row of the first repeater widget and my idea was to
> concatenate the label of the four selection-lists.
> 
> I have search and i coudn't find anything that could help me.
> 
> Does anyone knows how to do it ?
> If it is not possible in is this version, is it possible to be done in the
> next version ? Because i believe that it is an excellent functionality to
> be implemented.
> 
> Hugo Marcelino
> 05-05-2005
form.getWidget().yourselect.value
it should be a simple value attribute of your selection list

If your selection lists are in a repeater your have concider the row they
are in :
if they are in row 0 :
form.getWidget().getChild("yourrepeater").getRow(0).getChild("ur_sel_list").value

Tibor


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org