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 SoftwareeCommerce / Web Developer Tools http://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
Re: Dynamic Pop Up Menus with Record Value Selected (John Hill 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 SoftwareeCommerce / Web Developer Tools http://www.smithmicro.com
John Hill
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...