Player data

There are some specific UIM pages related with Agenda Player:

The following is an example of the UIM used to specify the navigation page. It contains a single field which supplies the agenda XML data.

<PAGE PAGE_ID="WizardTest" TYPE="SPLIT_WINDOW">

  <PAGE_TITLE>
    <CONNECT>
      <SOURCE NAME="TEXT" PROPERTY="page.title"/>
    </CONNECT>
  </PAGE_TITLE>

  <SERVER_INTERFACE NAME="DISPLAY" CLASS="Agenda"
                    OPERATION="getAgenda"/>

  <PAGE_PARAMETER NAME="agendaRef"/>

  <CONNECT>
    <SOURCE NAME="PAGE" PROPERTY="agendaRef"/>
    <TARGET NAME="DISPLAY" PROPERTY="key$agendaRef"/>
  </CONNECT>

  <CLUSTER SHOW_LABELS="false">
    <FIELD>
      <CONNECT>
        <SOURCE NAME="DISPLAY" PROPERTY="agendaXML"/>
      </CONNECT>
    </FIELD>
  </CLUSTER>

</PAGE>

The following is an example of a specific summary page:

<PAGE PAGE_ID="WizardSummary">

  <PAGE_TITLE>
    <CONNECT>
      <SOURCE NAME="TEXT" PROPERTY="Page.Title"/>
    </CONNECT>
  </PAGE_TITLE>

  <CLUSTER SHOW_LABELS="false" TITLE="Cluster.Title">
     <WIDGET TYPE="WIZARD_SUMMARY"/>
  </CLUSTER>

</PAGE>

The agenda data that drives the Player looks like this:

<?xml version="1.0" encoding="UTF-8"?>
    <agenda>
      <page-flow>
        <section description="First section"
                 status="SCT1">
          <page id="Person_homePage" description="Home"
                status="SC1" initial="true"
                submitonnext="true"/>
        </section>
        <section description="Second section"
                 status="SCT2">
          <page id="Person_listAddress" status="SC2"
                description="Addresses"/>
          <page id="Person_listBankAccount" status="SC1"
                description="Bank Accounts"
                submitonnext="true"/>
          <page id="Person_listCommunication" status="SC3"
                description="Communications"/>
          <page id="Person_listTask" status="SC2"
                description="Tasks"/>
          <page id="Person_listCitizenship" status="SC2"
                description="Citizenships"/>
          <page id="Person_listFinancial" status="SC2"
                description="Financial"/>
          <page id="Person_listNote" status="SC4"
                description="Notes"/>
        </section>
        <summary id="WizardSummary"
                 description="Summary Page"
                 close-on-submit="true"
                 status="SCT3"/>
      </page-flow>
      <parameters>
        <parameter name="concernRoleID" value="101"/>
        <parameter name="dynamicParam" value="0"/>
      </parameters>
      <exit-page id="Person_homePage">
        <parameters>
          <parameter name="concernRoleID" value="101"/>
        </parameters>
      </exit-page>
    </agenda>

There is one page element per screen to be displayed in the Agenda Player. The attributes that can be used in this element are as follows.

Table 1. Attributes of the page element
Attribute Description
id The page id for the page (as set in the PAGE_ID of the PAGE element in the page's UIM definition).
description The description of the page that will be displayed in the Navigation Panel.
status A status code that is mapped to an image.
initial Set to true if this is the page that should be displayed when the Agenda Player is first opened.
disableback Set to true if the Back button should be disabled on this page.
disableforward Set to true if the Forward button should be disabled on this page.
submitonnext Set to true if the Forward button should submit the form on this page.
close-on-submit This attribute applies to summary element only and allows for alternative way of quiting the player, as described below.

The important features to note are:

The following is an example of mapping status codes to images the ImageMapConfig.xml file.

<domain name="AGENDA_XML">
  <locale name="en">
    <mapping value="SC1" image="Images/Wizard/status1.gif"
             alt="English text..."/>
    ...
    <mapping value="SC4" image="Images/Wizard/status4.gif"
             alt="English text..."/>
  </locale>
  <locale name="fr">
    <mapping value="SC1" image="Images/Wizard/status1.gif"
             alt="French text..."/>
    ...
  </locale>
</domain>

The appearance of the Agenda Player control buttons, the summary screen and the navigation is defined in CSS. For details, please see Cascading Stylesheets.

The UIM CONDITION element allows for the conditional display of action controls, clusters or lists on a page that is displayed within an Agenda Player (see See CONDITION for more details on the condition element). To hide/display elements based on whether the page is in an Agenda Player or not, the NAME and PROPERTY attributes can only have the values CONTEXT and inWizard respectively.

Figure 1. Condition example:
<ACTION_SET ...>
  <CONDITION>
    <IS_TRUE NAME="CONTEXT" PROPERTY="inWizard"/>
  </CONDITION>
  ...
</ACTION_SET>

This indicates that the action set should be displayed only when that Action Set is on a page that is displaying within a Agenda Player.