# Data query in perspective

**URL:** <https://forum.inductiveautomation.com/t/data-query-in-perspective/40953>\
**Category:** Ignition\
**Tags:** perspective, ignition80\
**Created:** [November 25, 2020, 1:39pm UTC](https://forum.inductiveautomation.com/t/data-query-in-perspective/40953 "2020-11-25T13:39:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![flavien](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@flavien](https://forum.inductiveautomation.com/u/flavien)\
**Post date:** [November 25, 2020, 1:39pm UTC](https://forum.inductiveautomation.com/t/data-query-in-perspective/40953/1 "2020-11-25T13:39:04Z")

</div>

Hi,

In perspective, I use a template repeater to instances 3 views in a responsive page (like in demo V8). The first instance is a view which generate a db query and send result to the others view instances (1 chart and 1 table).

What is the best way to send these data from the 1st instance to the others (message handler, session variable, …) ?

Thanks for your advices

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [November 25, 2020, 2:56pm UTC](https://forum.inductiveautomation.com/t/data-query-in-perspective/40953/2 "2020-11-25T14:56:49Z")

</div>

Message handler.

I'm not really sure what you mean by this:

> [@flavien](#):
>
> I use a template repeater to instances 3 views

'template repeater' is Vision terminology, and substituting for Perspective's Flex repeater doesn't make sense as you say you have 3 different types of views you're displaying, and the components work for a single view type?

---

<div class="post-metadata">

**Author:** ![flavien](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@flavien](https://forum.inductiveautomation.com/u/flavien)\
**Post date:** [November 25, 2020, 3:11pm UTC](https://forum.inductiveautomation.com/t/data-query-in-perspective/40953/3 "2020-11-25T15:11:33Z")

</div>

It’s flex repeater sorry.

So message handler is the best way ? with page scope I suppose ?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [November 25, 2020, 4:40pm UTC](https://forum.inductiveautomation.com/t/data-query-in-perspective/40953/4 "2020-11-25T16:40:19Z")

</div>

> [@flavien](#):
>
> It’s flex repeater sorry.

@nminchin was looking for clarification because the Flex Repeater will only display a single View multiple times with different parameters. It is not possible to have two (or more) different Views within a Flex Repeater.

If you're just placing components into a View (even if those components are Embedded Views) then you should just use bindings. If your layout begins getting complicated, you could easily switch over to using Message Handlers - they're just a little more difficult to setup.
