MiniLang's first-from-list behaviour

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

MiniLang's first-from-list behaviour

Scott Gray
Hi All,

I noticed the <first-from-list> element does nothing if the list is
either null or empty (i.e. the field retains it's current value), I
was expecting that it would set the field to null.  I would like to do
one of two things, either change the behaviour of the element or
document the element so that people are aware of its current
behaviour.

Any opinions on which?

Thanks
Scott
Reply | Threaded
Open this post in threaded view
|

Re: MiniLang's first-from-list behaviour

Adrian Crum
It seems to me it should return an empty field.

-Adrian

Scott Gray wrote:

> Hi All,
>
> I noticed the <first-from-list> element does nothing if the list is
> either null or empty (i.e. the field retains it's current value), I
> was expecting that it would set the field to null.  I would like to do
> one of two things, either change the behaviour of the element or
> document the element so that people are aware of its current
> behaviour.
>
> Any opinions on which?
>
> Thanks
> Scott
>
Reply | Threaded
Open this post in threaded view
|

Re: MiniLang's first-from-list behaviour

David E Jones
In reply to this post by Scott Gray

Well, when you put it that way...

Yes I think we should change the behavior and have it set the value to null if the list is null or empty. That seems totally reasonable.

-David


On Sat, 19 Jul 2008 09:23:38 +1200, "Scott Gray" <[hidden email]> wrote:

> Hi All,
>
> I noticed the <first-from-list> element does nothing if the list is
> either null or empty (i.e. the field retains it's current value), I
> was expecting that it would set the field to null.  I would like to do
> one of two things, either change the behaviour of the element or
> document the element so that people are aware of its current
> behaviour.
>
> Any opinions on which?
>
> Thanks
> Scott

Reply | Threaded
Open this post in threaded view
|

Re: MiniLang's first-from-list behaviour

Scott Gray
Adrian, David, thanks for your input, I've made the relevant change in
rev. 678116

Regards
Scott

2008/7/19 David Jones <[hidden email]>:

>
> Well, when you put it that way...
>
> Yes I think we should change the behavior and have it set the value to null if the list is null or empty. That seems totally reasonable.
>
> -David
>
>
> On Sat, 19 Jul 2008 09:23:38 +1200, "Scott Gray" <[hidden email]> wrote:
>> Hi All,
>>
>> I noticed the <first-from-list> element does nothing if the list is
>> either null or empty (i.e. the field retains it's current value), I
>> was expecting that it would set the field to null.  I would like to do
>> one of two things, either change the behaviour of the element or
>> document the element so that people are aware of its current
>> behaviour.
>>
>> Any opinions on which?
>>
>> Thanks
>> Scott
>
>