Appframe Knowledge Base

1 hits

How to set filterString, whereClause, filterObject and whereObject on a data object in JavaScript

// Setting of whereClause and filterString as strings is no longer recommended and may be removed in the near future.
// If an AppSetting called DisableClientSideFilterStrings is set to true, filterString and whereClause will be ignored.

// To set filterString
ds.setParameter("filterString", vFilter);

// To set whereClause
ds.setParameter("whereClause", vFilter);

// NOTE: There is a separate kb article on how to define a filter object

// To set filterObject
ds.setParameter("filterObject", vFilterObject);

// To set whereObject
ds.setParameter("whereObject", vFilterObject);

// Setting filter will not automatically refresh the datasource
// So you will have to call refreshDataSource after setting the filter

components dataobject web · Perma link post comment Posted by: Øystein Kaldestad (12-apr-2013)