Linking to Actions

Database browsers can be used in combination with edit forms to create a complete database maintenance portlet application. Links can be made to another pane on the current page, or to another page in the portal.

A Database Browser portlet supports row links and table links. Row links are applied to a particular database row in the browser. Table links are actions that do not apply to any particular row. Using the default template, the row links are displayed at the end of each row as shown here we have two links: Edit, Delete.

The table links are displayed at the bottom of the portlet. Here we have one link: Add.

Links are configured in the registry. The row-link-ids parameter is a comma separated list of localised string ids. These ids are looked up in the resource bundle, and displayed as hyperlinks. The row-link-types determine the type of link. They are also comma separated. Valid values are:

  • 1. pane
  • 2. psml

The pane link will go to another pane in your current PSML resource. Here you can place an edit form for entering the values of the selected record.

The row-link-types specifies the name of the resource. With a pane link type, it identifies the name of the pane. The pane name can also be a portlet. When used with the psml link type, it specifies the name of a PSML resource.


<parameter name="row-link-ids" value="EDIT,DELETE" hidden="true"/>

<parameter name="row-link-types" value="pane,pane" hidden="true"/>

<parameter name="row-link-targets" value="CoffeesForm,CoffeesForm"

           hidden="true"/>

...

To add a new record to the database, the Add link is provided using table links. The table-link-ids parameter is a comma separated list of localised string ids. These ids are looked up in the resource bundle, and displayed as hyperlinks. The table-link-types determine the type of link. They are also comma separated. Valid values are:

  • 3. pane
  • 4. psml

The pane link will go to another pane in your current PSML resource. Here you can place an edit form for entering the values of a new record.

The table-link-types specifies the name of the resource. With a pane link type, it identifies the name of the pane. The pane name can also be a portlet. When used with the psml link type, it specifies the name of a PSML resource.


<parameter name="table-link-ids" value="ADD" hidden="true"/>

<parameter name="table-link-types" value="pane" hidden="true"/>

<parameter name="table-link-targets" value="CoffeesForm"

            hidden="true"/>