Rick,

Your Employee1 variable is an array, so when you display it as <@var
Employee1>, Witango will put wrap a table around it. Do a view source on the
resulting html. Do you see a <table> inside your <select>? That will mess us
the <select>.

Are you putting Employee1 in the select box twice because you want it at the
top, or selected by default? Maybe you could use the <@choicelist> tag
instead.

Dave Shelley
[EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:owner-witango-talk@;witango.com]On Behalf Of Rick Haden
Sent: Tuesday, November 05, 2002 8:17 AM
To: Multiple recipients of list witango-talk
Subject: RE: Witango-Talk: Array stuff


It is still that first reference to <@VAR Employee1> that seems to muck
it up...instead of the names appearing inside the drop down, they are in
a table outside it

____________________________
Rick Haden
Director - IS/IT
Trident Communications
3 Selsdon Way
City Harbour
London
E14 9GL
UK
Tel: +44 20 7536 8924
Fax +44 20 7536 8999
www.tridentcommunications.net
_______________________


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:owner-witango-talk@;witango.com] On Behalf Of Steve Smith
Sent: Tuesday, November 05, 2002 1:02 PM
To: Multiple recipients of list witango-talk
Subject: RE: Witango-Talk: Array stuff

You are trying to reference the variable from within a <@ROWS> loop for
the
same variable. Try this:

<@ASSIGN NAME="Employee1" VALUE='<@FILTER ARRAY="EmployeeList"
SCOPE="local" EXPR="#1=<@COLUMN 'customers.appointed_employee_1'>">'>
        <SELECT NAME="customers_appointed_employee_1" SIZE=1>
          <OPTION VALUE="<@COLUMN 'customers.appointed_employee_1'>">
<@VAR Employee1>
        <@ROWS ARRAY="EmployeeList">
          <OPTION VALUE="<@COL 1>"><@COL 2> <@COL 3>
      </@ROWS>
        </SELECT>

Hope this helps,

Steve Smith

Oakbridge Information Solutions
Office: (519) 624-4388
GTA:    (416) 606-3885
Fax:    (519) 624-3353
Cell:   (416) 606-3885
Email:  [EMAIL PROTECTED]
Web:    http://www.oakbridge.ca


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:owner-witango-talk@;witango.com]On Behalf Of Rick Haden
> Sent: November 5, 2002 7:05 AM
> To: Multiple recipients of list witango-talk
> Subject: Witango-Talk: Array stuff
>
>
> I know I am being stupid, but the following doesn't work and I know it
> has something to do with the variable, but I don't know how to fix it:
>
> <@ASSIGN NAME="Employee1" VALUE='<@FILTER ARRAY="EmployeeList"
> SCOPE="local" EXPR="#1=<@COLUMN 'customers.appointed_employee_1'>">'>
>       <SELECT NAME="customers_appointed_employee_1" SIZE=1>
>           <OPTION VALUE="<@COLUMN 'customers.appointed_employee_1'>">
> <@VAR Employee1>
>       <@ROWS ARRAY="EmployeeList">
>           <OPTION VALUE="<@VAR
NAME='EmployeeList[<@currow>,1]'>"><@VAR
> NAME="EmployeeList[<@currow>,2]">
>           <@VAR NAME="EmployeeList[<@currow>,3]"> </@ROWS>
>         </SELECT>
>
>
> OK...It is the first reference to <@VAR Employee1> that causes a
> problem...substitute text and the drop down works fine...put the
> variable in and I get the result outside the dropdown and the rest of
> the array as a great wodge of text...
>
> Any ideas?
>
> ____________________________
> Rick Haden
> Director - IS/IT
> Trident Communications
> 3 Selsdon Way
> City Harbour
> London
> E14 9GL
> UK
> Tel: +44 20 7536 8924
> Fax +44 20 7536 8999
> www.tridentcommunications.net
> _______________________
>
>
>
>
________________________________________________________________________
> TO UNSUBSCRIBE: send a plain text/US ASCII email to
[EMAIL PROTECTED]
>                 with unsubscribe witango-talk in the message body
>

________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to