Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Update link to go to OpenMRS Add-ons index instead

...

Resources

...

GenericListView has a property called fetchable which is an optional list of views or objects that implement the FetchHelper "interface"—that is they implement a getFetchOptions function that returns a modified options map to be used by the list view when fetching the list of objects.  Examples of FetchHelpers include the PaginateView which takes care of fetching only the items on the current page, and search views such as DepartmentAndNameSearchView which filters items based on their name and department.

FetchHelpers usually fire a "fetch" event which is handled by the list view that they affect to refresh the current items.

GenericListItemView

GenericListItemView is the default View used by GenericListView to render an individual item in the list.

...

GenericListEntryView is an extension to GenericListView that supports interactive, inline adding/editing of list items.  See the Cashier Module's bill screen for an example.