From: "Jamie Neil" <suppressed> > > -----Original Message----- > > From: suppressed > > [mailto:suppressed Behalf Of Tom Luong > > Sent: 03 June 2003 14:13 > > To: suppressed > > Subject: [ic] loop select drop down menu from delimited field > > > > > > I would like to loop a drop down menu. However, the column I want to loop > > has several values delimited by a comma. > > 1,5,6,7 > > 2,3 > > 4,8,9 > > > > I would like the dropdown menu to show > > 1 > > 2 > > 3 > > 4 > > 5 > > ... etc > > instead of > > 1,5,6,7 > > 2,3 > > 4,8,9 > > > > this is the code I have so far, > > <select name=mv_searchspec> > > <option value=""> --Select One-- > > [loop search=" > > fi=products > > st=db > > rf=year > > tf=year > > un=yes > > "] > > <OPTION VALUE="[loop-code]"> [loop-code] > > [/loop] > > </select> > > > > any suggestion? > > I would use perl. Join your search results together using the same comma > delimiter, write it to a scratch variable and then use: > > [loop list="[scratch chosenvariable]"] > [/loop] > > Jamie > Cool, thanks, its too bad my perl is not very good. Its time for be to start brushing up on it I guess. Thanks, tom _______________________________________________ interchange-users mailing list suppressed http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.