• Anonymous
  • Login
  • Register
XPages Dynamic View Control

Owners John Mackey Category
Admin Utilities
Contributors - Platform
R 8.5.2
Downloads 1048Download latest release Last Release Feb 19, 2010
Rating
(0 ratings)
Project Creation Feb 15, 2010
Status Not active Short URL Not defined
Description This is a custom control that will dynamically build a view on an XPage by populating parameters with the view information In Catalog
No


This custom control receives a series of parameters and will dynamically build a view on page load. This control is beneficial where you need to have display one of many views but do but want to build each one and hide them depending on the selection. This can also be useful where you want to allow non-developers or users the option to tailor a view.

You can read more about how I built the custom control here: http://www.jmackey.net/groupwareinc/johnblog/johnblog.nsf/d6plinks/XPages_Dynamic_View_OpenNTF

The custom control name is ccDynamicView. It requires one style sheet to format the row colors for alternating colors: ccDynamicViewStyle.css. It takes the following parameters:
- viewName: The name of the Notes View
- columns: The fields to display separated by a semi colon
- linkColumn: What number column will be the link (1,2,3 etc)
- xpageName: The XPage to open when the link is clicked
- viewWidth: Width of the view
- alternatingRowColors: true or false
- categoryFilter: show single category value (null will display all)
- fullTextSearch: fulltext string to search on (null will display all)
- defaultMode: read or edit
- viewRows: the number of rows to display

Here's an example of setting session variables to pass as parameters:
sessionScope.altColors="true";
sessionScope.catFilter=null;
sessionScope.columns="Project;ProjectID;StartDate;EndDate";
sessionScope.defaultMode="edit";
sessionScope.fullTextSearch=null;
sessionScope.linkColumn="1";
sessionScope.viewName="Projects";
sessionScope.viewRows="20";
sessionScope.viewWidth="500px";
sessionScope.xpageName="Project";

The database that contains the custom control has an example of it in use.


Projects can have short and readable URLs, e.g. http://mobilecontrols.openntf.org.

You can request a short URL to your project by sending a mail to support at openntf dot org. Put the word 'OpenNTF' somewhere in the subject.
Owners are the people with maximal rights. For example they can create releases and add more contributors.

In order to define multiple owners use "," (comma) as separator.

Because of data privacy you cannot lookup other people's names but you have to type them in.
Enter the contributors or owners here who you want to receive notifications and questions by email.

In order to define multiple owners use "," (comma) as separator.

Because of data privacy you cannot lookup other people's names but you have to type them in.
In addition to the owners additional OpenNTF contributors have to be listed here. Contributors don't have the same access rights as owners, e.g. they cannot create releases.

In order to define multiple owners use "," (comma) as separator.

Because of data privacy you cannot lookup other people's names but you have to type them in.
Enter a short description of the project here (up to 100 characters).

The short description shows up in the project UI and in some of the views.
In this field you should enter a more detailed description of your project.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.
A Catalog Release is for projects that are production ready and that are end-user "install friendly".

This property describes whether any release of this project has been added to the catalog.

Learn more about the catalog.