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:

WebCat2b15MacPlugin - showing [math] (1997) Capitalize (2000) Browser Problem?!? POST forms and NN 4.0+ browsers (1997) database confused (2000) Cart doesn't interpret tag! (1997) Question re: FlushDatabases (1997) RE: Signal Raised (1997) Limit to Field Length in DB (1998) SEARCHES (2000) Security Question (1997) WebCatalog 2.0 & WebDNA docs in HTML ... (1997) Docs error: encrypting templates... (2000) Question about replacing words (1998) Avery Label PDF Template (2003) RE: new cart IDs being assigned somehow (1997) WebTen + WebCatalog Plugin clarification (1998) WebCat2 - Getting to the browser's username/password data (1997) How to archive....? (1998) Problems getting parameters passed into email. (1997) Emailer file formats (1998)