Wednesday, May 11, 2011

JRapid Quick Tip 3: Adding Filters to Lists

Creating user-filterable listings is both incredibly useful in professional interfaces, and a snap to do with JRapid. Filters can be added to any listing and allow the user to limit the viewable records of particular entities by any number of their properties. Lists by default have three sections, the filter which if not specified will not be included, the view section displaying the particular records, and an “actionbar” section at the bottom allowing users to page through results and displaying default buttons and often custom actions.





JRapid services will automatically be created to select your records from the database and handle pagination of the results in the actionbar. When you create a filter, it will automatically create the back-end service to limit the results based on the parameter the user enters into the filter. JRapid delivers projects that adhere to the Model-View-Controller architecture.

These filters can quickly and easily be added to any entity in your project. All you have to do is right-click on the entity and select filter. You will then see a pop-up which will let you specify a name for this filter locally in your project, a label for the filter in the user interface and at the bottom a property of the entity to link to. Each entity can have as many or as few filters as you would like, and they support displays, so you have control over the screen layout of the individual filter controls.




Allowing users to limit their own search results is normally a fairly difficult task and something that you wind up duplicating time and time. Visit JRapid, try it out for yourself, and see how easy and quick a professional application can be to produce!


Try a sample app and see how filters work here.

No comments:

Post a Comment