custom form filter

How to create custom from using postgresql function as data source and filter > 1?
Below are my current code, but this code unable to withdraw data
ButtonLabel = “Time Distribution”
ModelType = “Class”
ClassModel = “mr_time_distribution”
ClassAttributes = “”
Layout = “grid”

DataType = "function"
	FunctionData = "jf_mr_time_dist"
mr_nomor="{server:mr_number}"
action_code="{server:actionCodeMR04}"
ReadOnly = "false"
Required = "false"
AddDisabled = "false"
ImportDisabled = "true"
ExportDisabled = "true"
ModifyDisabled = "false"
DeleteDisabled = "false"
CloneDisabled = "true"
SerializationType = "text"
    KeyValueSeparator = keyvalueSeparator
    AttributesSeparator = attrSeparator
    RowsSeparator = rowSeparator
RefreshBehaviour = "everyTime"
timeDistRow