Re: Selected Item in Pop-down
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 48479
interpreted = N
texte = At 9:27 AM -0600 3/5/03, Anthony Clark wrote:>Marc,>Thanks for the response. The problem is I can't figure out how to set up>the showif and selected attribute in the
tags to display the>category for the record I want to modify. I've got a field displaying>what the current category of that record is. The pop-down should display>all of the categories in the database, but have the particular category>for that record selected by default, so that if they don't want to>change the category, it leaves it alone. Do I make sense?If [db_category] contains the category for the record you are dealing with.. then[search db=categories.db&eqCATEGORYdata=find_all][founditems] [CATEGORY] [/founditems][/search] Enjoy!~joe-- ____________________________________________________________Joseph D'Andrea ~ http://www.west21.com/ ~ JoeDan@West21.com WEST21.com Internet services for the 21st Century webhosting ~ co-location ~ wireless access WebCat and MGI database programming____________________________________________________________-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
At 9:27 AM -0600 3/5/03, Anthony Clark wrote:>Marc,>Thanks for the response. The problem is I can't figure out how to set up>the showif and selected attribute in the tags to display the>category for the record I want to modify. I've got a field displaying>what the current category of that record is. The pop-down should display>all of the categories in the database, but have the particular category>for that record selected by default, so that if they don't want to>change the category, it leaves it alone. Do I make sense?If [db_category] contains the category for the record you are dealing with.. then[search db=categories.db&eqCATEGORYdata=find_all][founditems] [url][CATEGORY][/url] [showif [url] [CATEGORY][/url]=[url] [db_category][/url] SELECTED[/showif]>[CATEGORY] [/founditems][/search] Enjoy!~joe-- ____________________________________________________________Joseph D'Andrea ~ http://www.west21.com/ ~ JoeDan@West21.com WEST21.com Internet services for the 21st Century webhosting ~ co-location ~ wireless access WebCat and MGI database programming____________________________________________________________-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Joe D'Andrea
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
What are SMSI's upgrade policies? (2003)
quantity minimum problem (1997)
Need help with Shipping/Price discounts (1998)
[WebDNA] agree? --> [url] broken inside [redirect], on a (2009)
Credit Card Number checking (1997)
The IBC root beer has arrived! (1997)
Updating fields from different platforms (1998)
PCS Frames (1997)
calculating tax rates, mail order solutions and version 2 (1997)
downloadable docs (1999)
default value from Lookup (was Grant, please help me) (1997)
GrandTotal not right (1997)
Date/Time format problems (1997)
Using EIMS instead of Emailer (1998)
Lineitems [text*] (2004)
[no_cache]?! (2000)
Order not created error (never mind) (1997)
Problems getting parameters passed into email. (1997)
Secure server question (1997)
Using Cookie for client specific info? (1997)