# Buttons on Ignition Edge

**URL:** <https://forum.inductiveautomation.com/t/buttons-on-ignition-edge/66346>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [November 10, 2022, 1:02pm UTC](https://forum.inductiveautomation.com/t/buttons-on-ignition-edge/66346 "2022-11-10T13:02:58Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![mney](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@mney](https://forum.inductiveautomation.com/u/mney)\
**Post date:** [November 10, 2022, 1:02pm UTC](https://forum.inductiveautomation.com/t/buttons-on-ignition-edge/66346/1 "2022-11-10T13:02:58Z")

</div>

Hi,  
I have issue to create additional buttons on our existing HMI (Human Machine Interface) screen.  
The button is a template which is functional for other button.  
We have OPC \> tag storage interface to our Beckhoff PLC program.  
The template button is using a boolean 'Enabled' from the OPC data to change color and make is visible.  
This all works for other buttons but not for my new ones.  
One question is if we can have multiple button referring to the same PLC \> OPC button data structure.  
Kind regards

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [November 10, 2022, 2:06pm UTC](https://forum.inductiveautomation.com/t/buttons-on-ignition-edge/66346/2 "2022-11-10T14:06:21Z")

</div>

> [@mney](#):
>
> One question is if we can have multiple button referring to the same PLC \> OPC button data structure

If by this you mean, reading the value, then sure why not?

If what you have isn't working, then perhaps provide some information about what you have tried, what you expected, and what you actually got.

You'll find that we're a lot more helpful if armed with information. 😉

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [November 10, 2022, 2:24pm UTC](https://forum.inductiveautomation.com/t/buttons-on-ignition-edge/66346/3 "2022-11-10T14:24:52Z")

</div>

> [@mney](#):
>
> can have multiple button referring to the same PLC \> OPC button data structure

It sounds like you are asking about [Creating a Template](https://docs.inductiveautomation.com/display/DOC81/Creating+a+Template).

---

<div class="post-metadata">

**Author:** ![mney](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@mney](https://forum.inductiveautomation.com/u/mney)\
**Post date:** [November 10, 2022, 2:35pm UTC](https://forum.inductiveautomation.com/t/buttons-on-ignition-edge/66346/4 "2022-11-10T14:35:24Z")

</div>

No, we have a button template used on our screens.  
It has a rectangle which is made visible changing the color using a 'Enabled' var from Tag storage.  
That's work OK.

---

<div class="post-metadata">

**Author:** ![mney](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@mney](https://forum.inductiveautomation.com/u/mney)\
**Post date:** [November 10, 2022, 2:48pm UTC](https://forum.inductiveautomation.com/t/buttons-on-ignition-edge/66346/5 "2022-11-10T14:48:13Z")

</div>

So the question on multiple buttons with single data set from tag storage is OK.  
We have a data interface (HMI \< tag storage \> PLC (Beckhoff-Twincat) as Customer buttons.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/c/cce074aaeb1675e050c7a2271f2e01c8c77babf7.png)  
one example:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/6/a6f9123ec1fff762e7e362eae9ab350f5cf1e170.png)  
I have 3x the same button:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/4/04b2b78123ce18213905bfef5e3bc90815b703a9.png)  
On the right side is out existing button (Manual Controls group)  
Left to this is a new group (Device Enable), to use the same button.  
Fully left is one instance of the template button, without background and empty rectangle (placeholder)

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [November 10, 2022, 2:50pm UTC](https://forum.inductiveautomation.com/t/buttons-on-ignition-edge/66346/6 "2022-11-10T14:50:09Z")

</div>

Okay, so there is an error in the binding, what does that binding look like?

---

<div class="post-metadata">

**Author:** ![mney](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@mney](https://forum.inductiveautomation.com/u/mney)\
**Post date:** [November 11, 2022, 7:29am UTC](https://forum.inductiveautomation.com/t/buttons-on-ignition-edge/66346/7 "2022-11-11T07:29:17Z")

</div>

Here is the binding of a button which is OK.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/f/ffa13076c2e416d2274438d2c55b62e24d37aa9d.png)  
with a root address definition:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/8/a80f6b65057bd328ca72976081020f1f9ce0945e.png)  
Now re-use the same button:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/0/d07ea4807cfb230f5c3c9fbc688a4f23ca399b75.png)  
same root address:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/7/c75004f9b576340f481714a6bc48b957ecb282f5.png)  
As we see above (live): right window button OK; left window button not OK

---

<div class="post-metadata">

**Author:** ![mney](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@mney](https://forum.inductiveautomation.com/u/mney)\
**Post date:** [November 11, 2022, 7:34am UTC](https://forum.inductiveautomation.com/t/buttons-on-ignition-edge/66346/8 "2022-11-11T07:34:17Z")

</div>

I add this for the visualization:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/b/9b33a233be9c8b9024031043c13e9013f872ee35.png)

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [November 11, 2022, 8:43am UTC](https://forum.inductiveautomation.com/t/buttons-on-ignition-edge/66346/9 "2022-11-11T08:43:18Z")

</div>

The only difference I see is that the button on the left has one less parent than the buttons on the right, so my guess is that one of your paths is wrong relative to the others. I wasn't able to discern which one it was from the pictures above. What is that visibility binding bound to?

---

<div class="post-metadata">

**Author:** ![mney](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@mney](https://forum.inductiveautomation.com/u/mney)\
**Post date:** [November 11, 2022, 10:34am UTC](https://forum.inductiveautomation.com/t/buttons-on-ignition-edge/66346/10 "2022-11-11T10:34:41Z")

</div>

The visibility is bound as follows.  
Each button is an instance of our button template.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/a/8ad725e2a3bb50e11b63f2063607ae6847ffe3cc.png)  
The visibility is set using the color of the rectangle.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/f/ef60cf437c121b52d486ae7da08987826b19a1f3.png)  
The button template has the addresses for the link.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/5/25e19f6c7fdfc7013092b94791b9932a606649e9.png)  
The 'Enabled' property of the 'Custom button' is shown in the picture 'Visualization'

---

<div class="post-metadata">

**Author:** ![mney](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@mney](https://forum.inductiveautomation.com/u/mney)\
**Post date:** [November 11, 2022, 10:42am UTC](https://forum.inductiveautomation.com/t/buttons-on-ignition-edge/66346/11 "2022-11-11T10:42:12Z")

</div>

To your comment:

> [@justinedwards.jle](#):
>
> that the button on the left has one less parent than the buttons on the right,

We have the right group (Manual Contrtols) is the working one, the left one (Device Enable) is new and not OK.  
I don't see what you mean by less parent, we have:  
ButtonRelativeAddress = /uiManager/CustomButton/CustomButton\_5\_  
RootAddress = Root Container.RootAddress\_Device04  
looks the same to me.

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [November 11, 2022, 11:34am UTC](https://forum.inductiveautomation.com/t/buttons-on-ignition-edge/66346/12 "2022-11-11T11:34:30Z")

</div>

> [@mney](#):
>
> I don't see what you mean by less parent

I mean that the button on the left appears to be nested directly in the root container, while the other buttons appear to be nested in a container that is nested in the root container. Therefore, the buttons on the right have two parents: their container and the root container, while the button on the left only has one parent: the root container.

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [November 11, 2022, 11:36am UTC](https://forum.inductiveautomation.com/t/buttons-on-ignition-edge/66346/13 "2022-11-11T11:36:08Z")

</div>

Edit: try pasting the button into a container, and see if it fixes the problem. If so, at least you'll know for sure what you're looking for.

---

<div class="post-metadata">

**Author:** ![mney](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@mney](https://forum.inductiveautomation.com/u/mney)\
**Post date:** [November 11, 2022, 1:36pm UTC](https://forum.inductiveautomation.com/t/buttons-on-ignition-edge/66346/14 "2022-11-11T13:36:32Z")

</div>

The button is in Container, is 'Device Enable'.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/5/25065f30c2995af1952195b475eeb41a352fd3cb.png)  
The red one on the main page is a simple test.

---

<div class="post-metadata">

**Author:** ![mney](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@mney](https://forum.inductiveautomation.com/u/mney)\
**Post date:** [November 11, 2022, 2:36pm UTC](https://forum.inductiveautomation.com/t/buttons-on-ignition-edge/66346/15 "2022-11-11T14:36:11Z")

</div>

The button template does not have any scripting.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/4/e40afda624bf7b8448091063f5b64f681d26774b.png)  
The visibility goes by the coloring:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/5/c5d2f03474257a4e78549b0bc367c2c95bede45c.png)

---

<div class="post-metadata">

**Author:** ![mney](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@mney](https://forum.inductiveautomation.com/u/mney)\
**Post date:** [November 16, 2022, 3:38pm UTC](https://forum.inductiveautomation.com/t/buttons-on-ignition-edge/66346/16 "2022-11-16T15:38:54Z")

</div>

The design is changed to use checkbox instead of buttons.  
No solution for the button not being visible.  
This topic will be stopped here.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/0/d05c9aa5cb45f01541200dfdeab62799c09e7e99.png)
