KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Drop-down menus made simple
PRODUCT: 4D Business Kit | VERSION: 1.0 | PLATFORM: Mac
Published On: June 13, 2002

To easily create drop-down menus in your WebPages, use the 4DBKMenu command. This command will replace the "for loop" and the "end loop" section as well as all the numerous "<options value=" tags within the loop statement.

For example,

<form>
<select style="………….">
<option value="">Your Selection…</option>
<!--#4DBKSelectionSet/1-->
<!--#4DBKQuerySet/all-->
<!--#4DBKSelectionDistinct/L01-->
<!--#4DBKMenu/L01-->
</select>
</form>

Instead of,

<form>
<select style="......…..…">
<option value="">Your Selection....</option>
<!--#4DBKSelectionSet/1-->
<!--#4DBKQuerySet/all-->
<!--#4DBKSelectionDistinct/L01-->
<!--#4DBKRecordSet/1-->
<!--#4DBKLoop/VL01,1,4DBKSelectionSize-->
<option value="<!--#4DBKField/L01,U&L-->"><!--#4DBKField/L01--></option>
<!--#4DBKRecordNext-->
<!--#4DBKEndLoop/VL01-->
</select>
</form>