[albatross-users] can't figure out why it's flipping me the bird
Eric S. Johansson
esj at harvee.org
Thu Sep 11 10:14:04 EST 2003
Matt Goodall explained:
>
> The error means that you have multiple al-input fields with the same
> name, "albatross_token". There are two ways to fix that, depending on
> what you are trying to do:
>
> 1. Add a 'list' attribute to the al-input element to allow more than one
> al-input with the same name. The name will always be the string
> "albatross_token".
> 2. Use a 'nameexpr' attribute rather than 'name' so that each al-input
> has a different name. The name of the al-input will be the current value
> of the albatross_token variable.
>
>
>>The only reason I'm trying to set the name is so I can identify each field and
>>determine whether or not has changed from the previous value so I will know
>>whether to write it out or not.
>
>
> OK, I think you want 2 - use a 'nameexpr' attribute.
>
I'm doubly confused them. In my first example you'll notice that I set the
value of albatross_token before using any input statement. In that example,
each name is set to the value of albatross_token. I'm trying to do the same
thing in the second example. As you'll see, I'm setting the value with a
al-exec expr... statement. I did try the nameexpr version but you notice that I
also have a valueexpr to set the value of each input. If I use nameexpr then I
cannot use valueexpr.
So, how do I set the name and the value fields in each input? (This really
should not be this hard although I know it is for many systems like albatross)
---eric
More information about the Albatross-users
mailing list