Show TOC

Procedure documentationCreating an Element Data Object Locate this document in the navigation structure

Procedure

  1. In the Object Creation dialog box that appears, choose Element from the Type field.

    The Element section appears.

  2. Choose the type of element you want to create from the Element Type field, under the Define Element Properties section.

    More information: Data Object

  3. Under the General Data section, enter a name and short description for the element and choose Create & Navigate to Object.

    Note Note

    If you choose Create button, the element data object appears under the Assigned Objects tab. Click the name of the created object to define the element properties.

    End of the note.
  4. You have to add values to the element data object that you have created. You can create values, or refer to existing values or bind the data object.

    • Create New Values

      1. In the Domain Values tab page, choose Create Values.

      2. In the Object Creation dialog box that appears, enter the value for the data object, and choose Create.

      3. Depending upon the element you create, the related value fields appear in the Object Creation dialog box. Enter the related values in the fields that appear.

      4. The following table helps you to create new values and set element attributes:

        Element Type

        Values

        Element Attributes(Optional)

        Description

        Name and Text fields appear for all the element types. You can enter name and text appropriately for all the element types

        (Optional) If you want to set additional attributes of an element, choose Element Attributes(Optional) tab.

        Text

        Enter text in the Value field.

        Length

        You can enter an attribute with a maximum length of 255 in the Value field.

        Number

        Enter a number in the Value field

        Length

        You can enter an attribute with a maximum length of 31.

        The length represents the number of digits without exponent or sign.

        Decimals

        You can enter up to 10 maximum number of decimal places.

        Positive values only

        Select the checkbox to enter only positive values.

        Boolean

        You may choose True or False from the Value field.

        Amount

        Enter amount and currency in the Value and Currency fields.

        Quantity

        Enter quantity and unit in the Value and Unit fields.

        Timepoint

        You can choose the following different timepoint options:

        • abstract Date

          In the Date field, choose Calendar (Calendar). Choose the date from the calendar.

        • abstract Time

          In the Time field that appears, enter time in hh:mm:ss format.

        • abstract Date Time

          Date and Time fields appear. In the Date field, choose Calendar (Calendar) . Choose the date from the calendar. In the Time field enter time in hh:mm:ss format.

        • Global Date Time

          Date and Time fields appear. In the Date field, choose Calendar (Calendar) . Choose the date from the calendar. In the Time field enter time in hh:mm:ss format.

        • LocalDateTime Offset

          Date, Time, Offset Time, and Sign fields appear. Select the data from Date, enter the time in Time, enter the offset time (difference in time, with respect to the standard time) in Offset field, and choose the sign from Sign.

      Note Note

      1. You can set element attributes only for Number, Timepoint and Text element types.

      2. If the value of a constant does not fit to the element attributes (for example, exceeds the length) then you will get a warning message. You can still activate the object and such calculations are carried on with decfloat precession.

      3. The element attributes only affect the design time and not the runtime of the BRFplus.

      End of the note.
    • Select from the Existing Values

      1. In the Domain Values tab, choose Select Values.

      2. In the Object Query dialog box that appears, select the value and choose Select.

    • Bind the Element Data Object

      You can bind the data object if you want to have a value help from where you can select values.

      1. Under the Element Properties tab, choose Current object should be bound from the Binding Definition field.

      2. In the Select Bind Type field that gets enabled, choose the binding type:

        • Bind to an Existing Element

          1. Choose Bind an existing BRFplus element option to bind the object to an existing element.

          2. In the Object Query dialog box that appears, select the data object and choose Select.

        • Bind to a Data Dictionary

          1. Choose the Bind a data dictionary(DDIC) element to bind the object to an element object in the data dictionary.

          2. In the Bind DDIC dialog box that appears, select the DDIC element, and choose Select.

        More information: Binding

  5. (Optional) If you want to allow comparisons on an element, choose the relevant allowed comparison from the Allowed Comparisons field on the Element Properties tab.

    Example Example

    You can set restrictions on comparisons of an element, for example, in decision tables or decision trees. If you select Equals comparison for an element that is used in a decision table, then you can have only one or no value and you cannot use lower or greater comparisons.

    End of the example.

    The following table lists the allowed comparisons on an element:

    Allowed Comparison on an element

    Description

    Equals

    You can use only with equals with one value.

    Simple Value

    You can use equals or not equals with one value.

    Value List

    You can use equals or not equals with one or multiple values.

    No Restriction

    This is the default option.

    User Defined

    You can define the properties.

  6. Save the data object.