Class: Report

Report()

new Report()

Extends

Methods

filter(field, op, values)

Filters on the specified db field.
Parameters:
Name Type Description
field Object
op String
values Array
Inherited From:

firstPage()

Goes to the first page.

getAssocDBField(dsid, callback)

Returns the associated DB field object with the specified dsid.
Parameters:
Name Type Description
dsid String
callback function
Inherited From:

getDataContainerBy(dsid, callback)

Returns a Data Container component with the specified dsid.
Parameters:
Name Type Description
dsid String
callback function

getFilterCtrl(field, comp, callback)

Returns the FilterControl object.
Parameters:
Name Type Description
field Object The db field this FilterControl is bound to.
comp Object The component that this FilterControl is applied to.
callback function

getPageNumber() → {Number}

Returns the current page number of this report.
Returns:
page number
Type
Number

getPageTotal() → {Number}

Returns the page amount of this report.
Returns:
page total
Type
Number

getRptComponent(instName) → {Object}

Returns a Data Container component with the specified instance name.
Parameters:
Name Type Description
instName String
Returns:
com.jinfonet.api.RptComponent
Type
Object

getRptComponents() → {Array}

Returns all Data Container components in an array.
Returns:
array of com.jinfonet.api.RptComponent
Type
Array

gotoPage(pageNum,)

Goes to the specified page.
Parameters:
Name Type Description
pageNum, Number the page number it will go to.

isFilterable() → {Boolean}

Returns whether this data container supports filter function.
Inherited From:
Returns:
Type
Boolean

isSortable() → {Boolean}

Returns whether this data container supports sort function.
Inherited From:
Returns:
Type
Boolean

lastPage()

Goes to the last page.

nextPage()

Goes to the next page.

prevPage()

Goes to the previous page.

refresh()

Refreshes the report data.

sort(field, order)

Sorts on the specified db field by the specified ascending or descending order.
Parameters:
Name Type Description
field Object
order String
Inherited From: