Re: Dynamic Pop Up Menus with Record Value Selected

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 19197
interpreted = N
texte = You've pretty much figured out how to do it. A variation on the following: (assuming that [category] is an incoming form variable)Sometimes there is a conflict with the variable name since the pop-up menu is within a search itself and the variable [catego1] you may want from the outside search not the inside search. With 3.0, you can create a text variable to solve this. In 2.x, you can do the following: [search...] ... [include file=pop.inc&category=[catego1]] ... [/search]file: pop.inc >Hi all, > >I have been used snippet #1 below on an Admin_Add.tpl template to >dynamically create the pop up menus for input when a new product is >added to the database. > >SNIPPET #1 >========== >CATEG01: > > >I have successfully used snippet #2 on an Admin_Edit.tpl template to >successfully show in a pop up menu the selected menu item for the record >to be edited that is returned by a search. > >SNIPPET #2 >========== >Category: > >I would like to combine the two so that a version of snippet #1 would >create the pop up dynamically AND show the value of the field in the >found record as SELECTED in the pop up menu on the Admin_Edit.tpl >template. > >I've tried several different versions figuring that it required some use >of the [lineIndex] tag. I get the pop up OK, but I don't get the value of >the field as the selected value ind the pop up. > >Can someone steer me in the right direction. > >Jerry Nielsen > >Jerry N. Nielsen Voice: (310)264-2050 >Apple Computer, Inc. Fax: (310)264-2044 >Training Development Executive Cellular: (626)695-2895 >2041 Colorado Avenue - Suite 325 >Santa Monica, CA 90404 > >Learn about Apple products and technologies on the internet. >Sign up for Learn and Earn today at http://training.apple.com/lae/ >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ John A. Hill, V.P. Marketing Pacific Coast Software eCommerce / Web Developer Tools http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
  1. Re: Dynamic Pop Up Menus with Record Value Selected (John Hill 1998)
  2. Dynamic Pop Up Menus with Record Value Selected (Jerry Nielsen 1998)
You've pretty much figured out how to do it. A variation on the following: (assuming that [category] is an incoming form variable)Sometimes there is a conflict with the variable name since the pop-up menu is within a search itself and the variable [catego1] you may want from the outside search not the inside search. With 3.0, you can create a text variable to solve this. In 2.x, you can do the following: [search...] ... [include file=pop.inc&category=[catego1]] ... [/search]file: pop.inc >Hi all, > >I have been used snippet #1 below on an Admin_Add.tpl template to >dynamically create the pop up menus for input when a new product is >added to the database. > >SNIPPET #1 >========== >CATEG01: > > >I have successfully used snippet #2 on an Admin_Edit.tpl template to >successfully show in a pop up menu the selected menu item for the record >to be edited that is returned by a search. > >SNIPPET #2 >========== >Category: > >I would like to combine the two so that a version of snippet #1 would >create the pop up dynamically AND show the value of the field in the >found record as SELECTED in the pop up menu on the Admin_Edit.tpl >template. > >I've tried several different versions figuring that it required some use >of the [lineIndex] tag. I get the pop up OK, but I don't get the value of >the field as the selected value ind the pop up. > >Can someone steer me in the right direction. > >Jerry Nielsen > >Jerry N. Nielsen Voice: (310)264-2050 >Apple Computer, Inc. Fax: (310)264-2044 >Training Development Executive Cellular: (626)695-2895 >2041 Colorado Avenue - Suite 325 >Santa Monica, CA 90404 > >Learn about Apple products and technologies on the internet. >Sign up for Learn and Earn today at http://training.apple.com/lae/ >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ John A. Hill, V.P. Marketing Pacific Coast Software eCommerce / Web Developer Tools http://www.smithmicro.com John Hill

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:

PCS Frames (1997) Creating comums (1998) [authenticate] (1999) WCS Newbie question (1997) Showing unopened cart (1997) WC2b15 File Corruption (1997) California Tax Rates (1998) Multi or auto submit (1999) Hello??? (1997) Please.. copies of Digest for 7/29 and 7/30? (1997) Using [Include] Context (1999) Major Security Hole IIS NT (1998) 2 databases (1997) Newbie needs advice to learn to use WebDNA (2003) WebDNA-Talk Digests (1997) Re:Copyright ? (1997) How do I get WebCatalog to interpret WebDNA tags in.html files? (1997) GuestBook example (1997) Calculating Age from DB fields (2003) emailer setup (1997)