# Hasp\["1"\].page\[0\].tab\[0\].btn\[0\].value\_str - too complex or run of the mill?

**URL:** <https://discourse.nodered.org/t/hasp-1-page-0-tab-0-btn-0-value-str-too-complex-or-run-of-the-mill/85091>\
**Category:** General\
**Tags:** openhasp\
**Created:** [31 January 2024 19:33 UTC](https://discourse.nodered.org/t/hasp-1-page-0-tab-0-btn-0-value-str-too-complex-or-run-of-the-mill/85091 "2024-01-31T19:33:55Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [3 February 2024 12:57 UTC](https://discourse.nodered.org/t/hasp-1-page-0-tab-0-btn-0-value-str-too-complex-or-run-of-the-mill/85091/11 "2024-02-03T12:57:10Z")

</div>

@yogy Thanks for testing - Its dependent on what values you are sending to the function. That code uses a list of "dummy" buttons to demonstrate calculating the coordinates and sizes of different arrangements of buttons.

This topic is about the next step, which is about a way to define actual content for each page, in a way so that arrangement is done automatically.

If you can show what you have in the inject node and this line of the function, but reply to the other topic please, then I can take a look for you 😃

const tabviewValues = {  
"id": 50, "obj": "tabview", "btn\_pos": 1, "y": 75, "w": 480, "h": 353, "bg\_color": backgroundColor, "text\_font": 26, "border\_side": 0,

> [@Using openHASP with Node-Red](https://discourse.nodered.org/t/using-openhasp-with-node-red/81457/37):
>
> I'm working on some tools to make the page creation easier. To help where there is essentially a lot of duplication, eg X number of buttons on X number of pages, where each button only differs by a label or icon etc, I'm trying to create a kind of templating system so the actual amount of typing to produce pages is a minimal as possible. I hope this will eventually lead to something where only a list of labels / icons is needed to create a page of buttons etc. It's still very much work in pro…

---

_[View the full topic](https://discourse.nodered.org/t/hasp-1-page-0-tab-0-btn-0-value-str-too-complex-or-run-of-the-mill/85091)._
