Views are ways of displaying data on the page. Qrimp can display data in a table, a photo gallery, XML, or a large number of other layouts. Views are also used to let you edit data or rearrange it on a page. Advanced developers can also use views as page templates to add new layouts using HTML and Qrimp's square brackets notation.
Qrimp also has Custom Views (Sorting and Filtering)
Frequently used views are linked to by default in the Content Header with the following icons:
Grid View (Also called list view or table view).
Each Qrimp app comes with many default views.
Creating links to Views (for menu tabs and more)
In the location bar of your browser, you'll see the url you are on ie: "http://myapp.qrimp.com/db.aspx?t=customers&id=2&vid=11". The vid=11 tells the app to use view 11, which is the detail view. Changing the vid in your url will show you a different view. Note that if you are on a custom page or a page with a clean url) you will not see the vid. (See also Query String Parameters)
Click the "Customers" tab to see the following screen, customers, displayed in Grid View (vid=1).
Try to open a table with the XML View, which has an id of 19. Go to a table and edit the query string in the URL so that "vid=19". Qrimp will apply the XML View to the data being returned on the page.
Here is a list of fields for a template and what they mean:
This is the name of the view for easy reference or for adding to the query string using the vid=name parameter. You can also use the ID of the view.
DescriptionA description of your view
DisplayidThis tells Qrimp how to display the data, do you want your data in a table format like in the grid view or do you want it in a list. Most views you create will be a repeater. These controls are based on the ASP.NET Repeater Control and the DataGrid Control.
HeaderThe header content will appear above any data that is pulled from the database.
FooterThe footer content will appear below any data that is pulled from the database.
ItemTemplateThe item template is the HTML code that formats the display. If you are using a Repeater type view, then this HTML will format one complete record from the database. In a table type view, the item template will be applied to each column. In the table view, if there is no item template, then the template for the column is obtained from the Field Templates.
CellTemplateIn a repeater view, this should probably always be [DATA]. If you'd like to wrap the item template with an extra bit of HTML, you can add it here.
PageSizeHow many records to display by default. You can override this setting in the url using the &pagesize= parameter.
ContentTypeThe content type tells the browser how to display the data. If blank, text/html is assumed. If you want to display xml, use text/xml.
EnableWikiIf EnableWiki is true, square bracketed items will be hyperlinked.
Advanced: Building a New View
The easiest way to create your first View is to copy an existing view and then modify it. To copy a View, Go to Design > Views > Select the edit icon next to the View you want to copy > Scroll down to the bottom of the page > click the Copy button > Click the edit icon > edit the HTML > Save your edits with a new name.