# onDataTransform

This function is often used to transform a [calender ](/brixxbox-documentation/client-api-reference/controls/fullcalendar.md)event object. Called once pre received record. Must return a calender event.

### Example 1

Modifiy an existing record, to keep all the information but add new properties for the event

```javascript
eventArgs.details.title = eventArgs.details.terTitle;
eventArgs.details.description = eventArgs.details.terLongText; //This will be the tooltip text
eventArgs.details.start = eventArgs.details.terStart;
eventArgs.details.end = eventArgs.details.terEnd;
return eventArgs.details;
```

### Example 2

Create a new record.

```javascript
return {
    start: eventArgs.details.terStart
    end: eventArgs.details.terEnd
    title: eventArgs.details.terTitle
}
```


---

# 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://brixxbox.gitbook.io/brixxbox-documentation/client-api-reference/events/ondatatransform.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.
