You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Gunter D'Hondt <gu...@sofico.be> on 2005/01/31 12:04:32 UTC
woody static selection list: values from 1 to 99
Hi,
Is there a way to easily add a field into the form definition that
declares a static selection list with values from 1 to 99. Ofcoz it would
work when adding 99 item-lines but is there a more fancy way of doing
this? Also without making the list dynamic and putting another pipeline on
it.
<wd:field id="score" required="true">
<wd:label>Your score:</wd:label>
<wd:datatype base="string"/>
<wd:selection-list>
<wd:item value="1"><wd:label>1</wd:label></wd:item>
<wd:item value="2"><wd:label>2</wd:label></wd:item>
<wd:item value="3"><wd:label>3</wd:label></wd:item>
<wd:item value="4"><wd:label>4</wd:label></wd:item>
<wd:item value="5"><wd:label>5</wd:label></wd:item>
<wd:item value="6"><wd:label>6</wd:label></wd:item>
...
<wd:item value="99"><wd:label>99</wd:label></wd:item>
</wd:selection-list>
</wd:field>
Regards,
Gunter D'Hondt
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: woody static selection list: values from 1 to 99
Posted by Gunter D'Hondt <gu...@sofico.be>.
thing is that I'm not using flowscript but apples; ofcoz I can place it
into the code but I was just wondering if it can be done declaratively;
something like setting a range of values
Gunter
Reinhard Poetz <re...@apache.org>
31-01-2005 14:03
Please respond to
users@cocoon.apache.org
To
users@cocoon.apache.org
cc
Subject
Re: woody static selection list: values from 1 to 99
Gunter D'Hondt wrote:
> Hi,
>
> Is there a way to easily add a field into the form definition that
> declares a static selection list with values from 1 to 99. Ofcoz it
would
> work when adding 99 item-lines but is there a more fancy way of doing
> this? Also without making the list dynamic and putting another pipeline
on
> it.
>
> <wd:field id="score" required="true">
> <wd:label>Your score:</wd:label>
> <wd:datatype base="string"/>
> <wd:selection-list>
> <wd:item value="1"><wd:label>1</wd:label></wd:item>
> <wd:item value="2"><wd:label>2</wd:label></wd:item>
> <wd:item value="3"><wd:label>3</wd:label></wd:item>
> <wd:item value="4"><wd:label>4</wd:label></wd:item>
> <wd:item value="5"><wd:label>5</wd:label></wd:item>
> <wd:item value="6"><wd:label>6</wd:label></wd:item>
> ...
> <wd:item value="99"><wd:label>99</wd:label></wd:item>
> </wd:selection-list>
> </wd:field>
you could set the values in flowscript using a for loop.
--
Reinhard
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: woody static selection list: values from 1 to 99
Posted by Reinhard Poetz <re...@apache.org>.
Gunter D'Hondt wrote:
> Hi,
>
> Is there a way to easily add a field into the form definition that
> declares a static selection list with values from 1 to 99. Ofcoz it would
> work when adding 99 item-lines but is there a more fancy way of doing
> this? Also without making the list dynamic and putting another pipeline on
> it.
>
> <wd:field id="score" required="true">
> <wd:label>Your score:</wd:label>
> <wd:datatype base="string"/>
> <wd:selection-list>
> <wd:item value="1"><wd:label>1</wd:label></wd:item>
> <wd:item value="2"><wd:label>2</wd:label></wd:item>
> <wd:item value="3"><wd:label>3</wd:label></wd:item>
> <wd:item value="4"><wd:label>4</wd:label></wd:item>
> <wd:item value="5"><wd:label>5</wd:label></wd:item>
> <wd:item value="6"><wd:label>6</wd:label></wd:item>
> ...
> <wd:item value="99"><wd:label>99</wd:label></wd:item>
> </wd:selection-list>
> </wd:field>
you could set the values in flowscript using a for loop.
--
Reinhard
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org