Whatever message this page gives is out now! Go check it out!
<cfsprydataset
bind = "bind expression"
name = "data set name"
onBindError = "JavaScript function name"
options = "Spry options object"
type = "xml|json"
xpath = "XPath expression">Attribute | Req/Opt | Default | Description |
bind | Required | A bind expression that returns an XML- or JSON- formatted string to populate the Spry data set. The bind expression specifies a CFC function or URL and includes bind parameters that represent the values of ColdFusion controls. For detailed information on bind expressions, see Binding data to form fields in the Developing ColdFusion Applications. | |
name | Required | The name of the Spry data set. | |
onBindError | Optional;HTML | See Description | The name of a JavaScript function to execute if the bind expression results in an error. The function must take two attributes: an HTTP status code and a message. If you omit this attribute, and specified a global error handler (by using the ColdFusion.setGlobalErrorHandler function), the handler displays the error message; otherwise a default error pop-up appears. |
options | Optional | A JavaScript object containing constructor options for the data set. For example, to request the data using the HTTP POST method, specify the following attribute:options="{method: 'POST'}". For detailed information on Spry options, see the Spry documentation at www.adobe.com/go/learn_spry_framework_en. | |
type | Optional | xml | Specifies data set type, corresponding to the format of the data that is returned by the bind expression. The following values are valid:
|
xpath | Required for xml typeNot used for JSON | An XPath expression that extracts data from the XML returned by the bind expression. The data set contains only the data that matches the XPath expression. |
<cfsprydataset name="theItems" type="json"
bind="CFC:dataMgr.getdetails(prodname={myform:mygrid.TITLE})"
options="{path: 'items.item.'}"><cfsprydataset
name="dsProduct"
type="xml"
bind="CFC:GridDataManager.getProductDetails(prodname=
{bookform:bookgrid.TITLE})"
xpath="products/product"
options="{method: 'POST'}"
onBindError="errorHandler">