Cubic Compass Software

- Support Wiki

Dialogue Script : DropDownList

Modified: 2008/09/08 22:31 by bryce - Categorized as: Dialogue Script
Edit

Dialogue Script : DropDownList

Edit

Syntax


<dlog:DropDownList id={unique DropDownList ID} ObjectName={object field name} FieldName={object field name} 
DefaultItem={default string value} param={CGI param} CssClass={CSS class}></dlog:DropDownList>

Edit

Usage


Displays a drop down list (picklist) of databound or defined list items.

Edit

Attributes


id: (Required) A unique identifier for the control. Multiple drop down lists displaying the same fields may be used on a page, but each DropDownList control must have a unique ID.
ObjectName: (Optional) Reference to the Salesforce object name.
FieldName: (Optional) The Salesforce custom field name to be displayed.
DefaultItem: (Optional) The first (default) value to appear in the picklist. For example, "Select One".
param: (optional) Populates the DropDownList from a URL parameter.
CssClass: (Optional) Reference to a Cascading Style Sheet class for defining presentation of control.


View more attributes

Edit

Example 1: Databound List


<dlog:DropDownList id="AccountState" ObjectName="Account" FieldName="State" DefaulItem="Select a State" />

Edit

Example 2: Defined List


<dlog:DropDownList id="DropDownListID" FieldName="Status">
<asp:ListItem>Hot</asp:ListItem>
<asp:ListItem>Warm</asp:ListItem>
<asp:ListItem>Cold</asp:ListItem>
</dlog:DropDownList>

ScrewTurn Wiki version 2.0.35. Some of the icons created by FamFamFam.