# Mapping

## Description:

Transaction Mapping

Use this component to map an attribute with the parent Transaction attribute.

Parent attribute value will be assigned to child attribute on save. If it is a new record then the platform will first save the parent record and then the parent attribute value will be assigned to the mapped child attribute before saving child transaction.

Similarly, on a query of child transaction, parent attribute value will be the value for the mapped child attribute in the where clause. e.g.. #childattr# = #parentAttr#

### Allowed Parent Components:

1. Transaction

### Allowed Child Components:

1. Trigger Before Render

### Properties

### ➤ Parent Attribute

Select an attribute from parent datasource which will be assigned to child datasource attribute.

Allowed Values: Select an attribute from parent datasource which will be assigned to child datasource attribute.

### ➤ Child Attribute

Select an attribute from child datasource to map with parent datasource attribute.

Allowed Values: Select an attribute from child datasource to map with parent datasource attribute.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudio.io/ui-components/widgets/transactiondefaultmapping.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
