# Single tag, tag-drop Perspective template

**URL:** <https://forum.inductiveautomation.com/t/single-tag-tag-drop-perspective-template/40726>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [November 17, 2020, 12:39pm UTC](https://forum.inductiveautomation.com/t/single-tag-tag-drop-perspective-template/40726 "2020-11-17T12:39:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [November 17, 2020, 12:39pm UTC](https://forum.inductiveautomation.com/t/single-tag-tag-drop-perspective-template/40726/1 "2020-11-17T12:39:11Z")

</div>

I want to create a Perspective template as shown below, to be able to embed multiple occurrences of it on a view and drop tags onto each one. The template would then use the tag.Name, tag.Value, tag.formatString, tag.Units and tag.ToolTip, etc. (or whatever the proper property names are).

![Perspective template](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/4/9454431768a32a6d769b35568819011950266747.png)

I’ve read through the documentation and the forum examples but can’t figure out how to set up the view’s dropConfig and how to bind each label to the tag.

There is no option to select a tag as a parameter. Do I pass the tag path as a string?

Can anyone help?

---

<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 24, 2020, 5:28pm UTC](https://forum.inductiveautomation.com/t/single-tag-tag-drop-perspective-template/40726/2 "2020-11-24T17:28:34Z")

</div>

A couple of notes about setting up tag-drops:

1. Our settings allow for specifying what components should be used for a tag value type, ie: When I drop a tag which has a value which is an integer, I want to select from X, Y, Z component types (usually Label, Numeric Entry Field, Slider - something like that).

2. Our settings allow for specifying when using a component what properties of that component should then be bound to the tag which was dropped, ie: `props.value` or `props.text`.

We don’t have a way to configure “when I drop a tag, use MyView as the template”. The closest you’re going to get right now is the following:

For the tag value type you plan on dropping, specify you would like to have the option to use an Embedded View.  
 ![Screen Shot 2020-11-24 at 9.10.30AM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/2/52f2a6d2f47a4ad294796be9bcd11e427820c2e4.png)

Next, you should specify that when an Embedded View is used, we should bind the path of the tag to `props.params.tagPath` of the Embedded View we will use.  
 ![Screen Shot 2020-11-24 at 9.21.53AM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/7/079fcf9e03c41054c2747672fc75f80c0e863050.png)

Now, you should build a View where you configure a `param` value of `tagPath`:  
 ![Screen Shot 2020-11-24 at 9.23.53AM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/b/eb23f5f09b6643b60f63a2d4322d7bfe8cdbf743.png)

From here, what you need to do is build out the components of the View to bind against the Tag Path specified in the param (it is at this point tat you would specify `.value` or `.quality` or `.name` as part of the tag path.

![Screen Shot 2020-11-24 at 9.26.56AM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/f/4fe1974c8cec3645a4efc1e16fc192e5b60e7d4d.png)

The only remaining step is to actually manually set `EmbeddedView.props.path` to the View which houses your components.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [November 24, 2020, 10:30pm UTC](https://forum.inductiveautomation.com/t/single-tag-tag-drop-perspective-template/40726/3 "2020-11-24T22:30:02Z")

</div>

Super! Thank you for your time on this. I will update with anything I learn on the matter.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [February 12, 2021, 10:33pm UTC](https://forum.inductiveautomation.com/t/single-tag-tag-drop-perspective-template/40726/4 "2021-02-12T22:33:19Z")

</div>

I’ve worked out a good-ish solution for this and posted it on [Creating a Perspective tag-drop view (almost) [solution]](http://forum.inductiveautomation.com/t/creating-a-perspective-tag-drop-view-almost-solution/43376).

Thanks again.
