Documentation Center

Inserting and updating values in a List of Values (LOV)

The script herein, create two values for the LOV with the name DMANUALTYPE. The other elements and values should be taken as in the example because they are required by the TriDK database.

Before you begin

  • You should know the element name of the list of values in which values are to be created or updated.
  • You should take into account the naming conventions. Make sure that you give an uppercase name to the value and that it starts with a V, such as shown below, VSERVICEMANUAL and VTRAININGMANUAL. Also make sure you give a valid label, such as Service Manual and Training Manual as shown below.

Example


<tridk:setup xmlns:tridk="urn:trisoft.be:Tridk:Setup:1.0" xml:lang="EN">
  <tridk:lovs>
    <tridk:lov tridk:element="DMANUALTYPE">
      … [holds the script to define the LOV to which what follows is applied; see section above]
      <tridk:lovvalues>
        <tridk:lovvalue tridk:element="VSERVICEMANUAL">
          <tridk:displaydefinition>
            <tridk:label>Service Manual</tridk:label>
            <tridk:description/>
          </tridk:displaydefinition>
          <tridk:sequence tridk:value="1"/>
          <tridk:active tridk:value="yes"/>
        </tridk:lovvalue>
        <tridk:lovvalue tridk:element="VTRAININGMANUAL">
          <tridk:displaydefinition>
            <tridk:label>Training Manual</tridk:label>
            <tridk:description/>
          </tridk:displaydefinition>
          <tridk:sequence tridk:value="2"/>
          <tridk:active tridk:value="yes"/>
        </tridk:lovvalue>
      </tridk:lovvalues>
    </tridk:lov>
  </tridk:lovs>
</tridk:setup>