Softerra LDAP Administrator HelpShow AllHide All

<duration> element

Specifies a time span report user parameter.

<reports>
   <report>
      <userParameters>
         <duration>
<reports> 
  <report>
    <userParameters>
      <duration id="parameter id">
        <name lang="[en|de]>...</name>
        <description lang="[en|de]">...</description>
        <default>...</default> 
      </duration>
    </userParameters>
  </report>
</reports>

Remarks:

Users can set time interval in days, hours, minutes, or seconds. On the report dialog, it is displayed using a time duration control. The display format of the control is adjustable and possible formats are described below. The <duration> element has optional inputFormat attribute that defines the format of the duration control. The attribute can have a set of the following values: days, hours , minutes, or seconds and spin. If the attribute is not defined, all values are applied to the <duration> parameter. These values define what duration units shall be displayed. They have to be space-separated. For example: inputFormat = “days hours spin”. Please note: The use of the spin value provides the duration control with two arrows used to adjust the time span.

The pattern for <duration> element is PnYnMnDTnHnMnS, where nY represents the number of years, nM the number of months, nD the number of days, T is the date/time separator, nH the number of hours, nM the number of minutes, and nS the number of seconds.

Attributes

AttributeDescription
id Required attribute. Identifies the user parameter. The value is used to join report parameters with filter parameters.

Child Elements

ElementDescription
<name> Specifies the name of a user parameter.
<description> Specifies the description of a user parameter.
<default> Specifies the default value for a user parameter.

Parent Elements

ElementDescription
<userParameters> Specifies parameters that are used in a parameterized search filter.