E
egarcia
Guest
Hello Meyrick, You can use the CUSTOM CODE section at the bottom of index.js to change the properties of the DataSource before it is created by the onShow event. See example below. The serverFiltering property is also set to true by configuring the Filtering section under Configuration. I hope this helps. Example: // START_CUSTOM_CODE_homeModel var dataSourceOptions = app.home.homeModel.get("_dataSourceOptions"); //alert("DEBUG: " + JSON.stringify(dataSourceOptions)); dataSourceOptions.serverFiltering = true; dataSourceOptions.serverPaging = true; //dataSourceOptions.serverSorting = true; dataSourceOptions.transport = { countFnName: "count" }; dataSourceOptions.filter = { field: "Name", operator: "contains", value: "Athlete" }; // END_CUSTOM_CODE_homeModel
Continue reading...
Continue reading...