Try OpenEdge Now
skip to main content
New Information
Business Entity Support for Data Objects : Client formatting for properties of a JFP object
 

Client formatting for properties of a JFP object

The client DataSource initially sets values for two properties of the JFP object that it passes in a call to the JSDO fill( ) method, which invokes a Data Object Read operation on the server. The DataSource initially sets these properties using a format specified in the Kendo UI DataSource documentation as follows:
*ablFilter property — Where ablFilter corresponds to the filter property that the DataSource passes in a call to fill( ). For more information on the format of this filter property value, see the DataSource filter configuration property description.
*orderBy property — Where orderBy corresponds to the sort property that the DataSource passes in a call to fill( ). For more information on the format of this sort property value, see the DataSource sort configuration property description.
For example, these properties can be passed in a call to fill( ) like this:
clientJsdo.fill({filter: {field: "CustNum", operator: "gt", value: 5},
sort: { field: "Name", dir: "desc" }})
Where clientJsdo is a reference to a client JSDO with access to an OpenEdge Data Object resource whose ABL Read operation handles a JFP object parameter. Note that the filter and sort properties that the DataSource passes to fill( ) are set from corresponding configuration properties of the same name that are previously set in the Kendo UI DataSource. The client call to the Read operation then converts the Kendo UI format of these property values to an equivalent ABL format as documented for the Business Entity method that implements the operation.
For more information on the JSDO fill( ) method, see fill( ) method.