**Source URL:** https://lims.veevavault.help/en/lr/1428460/

# Configuring Using Input Values for Calculated Results

Veeva LIMS allows Design Data Admins to integrate *Consumable* and *Asset* attributes directly into a Calculation. *Test Definitions* can look up specific metadata assigned to a *Test*'s *Input* and inject those values into formulas. This metadata is tracked using the *Input Attribute* object.

To configure this feature for use, complete the following steps:

1. Configure the page layouts and object tabs:
    1. Ensure the *Input Attributes* (`input_attribute__v`) tab is accessible to Master Data Administrators.
    2. Add the *Asset Family Attribute* related list to the *Asset Family* page layout.
    3. Add the *Consumable Family Attribute* related list to the *Consumable Family* page layout.
    4. Add the following to the *Consumable* layouts (`reagent__v`, `standard__v`, `equipment__v`):
        1. The `attributes_usable__v` checkbox
        2. The *Consumable Attributes* related list (pointing to `consumable_attribute__v`)
    5. Add the following to the *Asset* layout (`instrument__v`):
        3. The `attributes_usable__v` checkbox
        4. The *Asset Attributes* related list (pointing to `asset_attribute__v`)
    6. Configure the `attributes_usable__v` to default to FALSE and to update based on the lifecycle. For example, when the *Asset* moves to *In Service,* then `attributes_usable__v` is set to TRUE. Attributes cannot be retrieved by the calculation engine if the `attributes_usable__v `checkbox on the parent `lims_consumable_svo__v `or `asset__v` record is set to FALSE. This acts as a safeguard to prevent using unverified or unreleased materials.
2. Activate the following new object types:
    7. *Test Definition Result Variable*
        5. *Input Attribute Variable*
        6. *Input Amount Variable*
    8. *Test Result Variable*
        7. *Input Attribute Variable*
        8. *Input Amount Variable*
    9. *Test Result Calculation Reference*
        9. *Calculation Input Asset Attribute*
        10. *Calculation Input Consumable Attribute*
        11. *Calculation Input Consumable Amount*
3. Optional if not using builder: Configure layout rules on *Test Definition Result Variable.*
    10. Navigate to **Admin > Configuration > Objects > Test Definition Result Variable > Page Layouts**.
    11. Set up a **Layout Rule** for object type `input_attribute_variable__v`:

             If Object Type is *Input Attribute Variable*:
            **Show and Make Required:** `target_test_definition_input__v` and `target_input_attribute__v`
            **Hide:** *target_result__v*, *target_constant__v*, and standard `test-definition-related` targets

    12. Set up a **Layout Rule** for object type `input_amount_variable__v`:

            If Object Type is *Input Amount Variable*:
            **Show and Make Required:** `target_test_definition_input__v`
            **Hide:** `target_input_attribute__v`, `target_result__v`, `target_constant__v`

### **Permissions**

This feature requires Execute permission to the `recalculate_dependent_results__v` action.
