# RenderData()

The ColdBox Proxy also has the ability to use the request context's `renderData()` method. So you can build a system that just uses this functionality to transform data into multiple requests. Even have the ability for the same handler to respond to REST/SOAP and MVC all in one method:

**Event Handler:**

```javascript
function list(event,rc,prc){
    prc.data = userService.list();
    event.renderData( data=prc.users, formats="xml,json,html" );
}
```

**Proxy:**

```javascript
string function getUsers(string format="json"){
    arguments.event = "users.list";
    return process(argumentCollection=arguments);
}
```

This handler can now respond to HTML requests, SOAP requests, Flex/Air Requests and even RESTFul requests. How about that!


---

# 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://coldbox.ortusbooks.com/v4.x-1/digging-deeper/coldbox-proxy/the-event-handlers/renderdata.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.
