Web API

cplist

Other API in Package

User

Internal Tunnel

Internal Web

Tunnel

cplist tag

Allows iteration over the system defined DataList object. These DataLists are generally those available from BusinessUtil. Supported in documents.

Tag Attributes
Attribute Notes
name Required
id Required
odd
even
toggle
include
exclude

Sample:

list of countries not including US and AL
<select name="country">
    <c:cplist name="countries" exclude="AL,US" id="country">
        <option value="${country.get('code')}">${country.get("name")}</option>
    </c:cplist>
</select>

list of states for US (United States) exclude PR (Puerto Rico)
<select name="states">
    <c:cplist name="states" include="US" exclude="PR" id="state">
        <option value="${state.get('code')}">${state.get("name")}</option>
    </c:cplist>
</select>

list of top level NAICS codes
<select name="naics">
    <c:cplist name="naics" id="code">
        <option value="${code.get('code')}">${code.get("name")}</option>
    </c:cplist>
</select>

list of child codes of the given NAICS code
<select name="naics">
    <c:cplist name="naics" id="code" include="1">
        <option value="${code.get('code')}">${code.get("name")}</option>
    </c:cplist>
</select>
Copyright © 2006 - 2024, ContractPal, Inc. All rights reserved. API Date: Jul 15, 2024 03:42 PM