# Button with long script inconsistent

**URL:** <https://forum.inductiveautomation.com/t/button-with-long-script-inconsistent/54070>\
**Category:** Ignition\
**Tags:** ignition81, scripting\
**Created:** [December 13, 2021, 8:03pm UTC](https://forum.inductiveautomation.com/t/button-with-long-script-inconsistent/54070 "2021-12-13T20:03:57Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [December 13, 2021, 11:55pm UTC](https://forum.inductiveautomation.com/t/button-with-long-script-inconsistent/54070/7 "2021-12-13T23:55:58Z")

</div>

Similar, though I’m lazy so I’ve written the scripts to account for a parent path so that I don’t have to type the entire tagPath when referencing a value.

You can find the exact scripts here:

> [@Editing historian tag data](https://forum.inductiveautomation.com/t/editing-historian-tag-data/49328/29):
>
> First of all, please don’t think I am saying that your are doing it wrong, IMO if it works then it isn’t really “wrong”. However, there are often more ‘reliable’, ‘performant’ and/or ‘more readable’ ways of doing things. That is what makes best practices, best practices. You can read each tag individually, it will work, it is not the most performant way to do it. This is the way I do it, it is not the only way to do it, nor is it probably the “best” way to do it. So, here is how I do this. …

---

_[View the full topic](https://forum.inductiveautomation.com/t/button-with-long-script-inconsistent/54070)._
