Try an equivilent to this: <@ASSIGN NAME="la_category" VALUE="@@resultset" SCOPE="LOCAL">
<@ASSIGN NAME="la_tempcategory" VALUE='<@ARRAY VALUE=",'All Selections';" CDELIM="," RDELIM=";">' SCOPE="LOCAL"> <@ADDROWS ARRAY="la_category" VALUE="@@local$la_tempcategory" POSITION="0"> Hope this helps, Steve Smith Skadt Information Solutions Office: (519) 624-4388 GTA: (416) 606-3885 Fax: (519) 624-3353 Cell: (416) 606-3885 Email: [EMAIL PROTECTED] Web: http://www.skadt.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Fogelson, Steve Sent: June 12, 2002 4:23 PM To: Multiple recipients of list witango-talk Subject: RE: Witango-Talk: Search on a drop down menu Steve, Thanks for the idea. Not sure if this will work in my situation. I create an array in a search action. I then assign a variable to the array in the results html for the search action. Then in a subsequent results html action, I use javascript to display the dropdown list. The reason I use javascript is that another dropdown list is dependant on the selection of the first list. IE: In the original results html for the search action, I want to add the blank as the first row of the array. Steve -----Original Message----- From: Steve Smith [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 2:55 PM To: Multiple recipients of list witango-talk Subject: RE: Witango-Talk: Search on a drop down menu What I do to create an empty value is to use the following: <SELECT NAME="" SIZE=1> <OPTION VALUE=""> <@ROWS START=1 STEP=1 ARRAY="arrayname"> <OPTION VALUE="<@COL NUM='1'>"><@COL NUM='2'> </@ROWS> </SELECT> Hope this helps, Steve Smith Skadt Information Solutions Office: (519) 624-4388 GTA: (416) 606-3885 Fax: (519) 624-3353 Cell: (416) 606-3885 Email: [EMAIL PROTECTED] Web: http://www.skadt.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Fogelson, Steve Sent: June 12, 2002 3:45 PM To: Multiple recipients of list witango-talk Subject: Witango-Talk: Search on a drop down menu Two questions: 1) I want a drop down menu to pass a variable to a "search" action. It is a simple 2 column array. First column the id, second column the description. I want the first row in the array to be a "list all items". If the id is blank and the search is on the id, will the search include all rows in the table? 2) Assuming a blank in the id will result in all rows from the table, how do I add a first row to the array on the fly? I used the following code and am having trouble with the blank. <@ASSIGN NAME="Cat1" VALUE="@@resultSet" SCOPE="User"> <@ASSIGN NAME="temp" VALUE="<@ARRAY ROWS='1' COLS='2' VALUE=' ,All Listing Types' CDELIM=',' RDELIM='|'>" SCOPE="User"> <@ADDROWS ARRAY="Cat1" VALUE="User$temp" POSITION="0" SCOPE="User"> I am getting the following error: Parameter arrays must have the same number of columns. @ADDROWS Am I going about this the wrong way? Thanks Steve Fogelson Internet Commerce Solutions ________________________________________________________________________ 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
