# Need help getting Javascript-calculated array to show up table

**URL:** <https://community.glideapps.com/t/need-help-getting-javascript-calculated-array-to-show-up-table/71178>\
**Category:** Ask for Help\
**Created:** [February 26, 2024, 4:21pm UTC](https://community.glideapps.com/t/need-help-getting-javascript-calculated-array-to-show-up-table/71178 "2024-02-26T16:21:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmshupp](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lmshupp/32/71440_2.png) [@lmshupp](https://community.glideapps.com/u/lmshupp)\
**Post date:** [February 26, 2024, 4:21pm UTC](https://community.glideapps.com/t/need-help-getting-javascript-calculated-array-to-show-up-table/71178/1 "2024-02-26T16:21:52Z")

</div>

I see there is a column type “Make Array,” that nicely bubbles the values in the cell.  
Since it doesn’t support creating the array from calculated values, I’m trying to do this with Javascript instead.

I’ve seen threads like this one on [how to return an array](https://community.glideapps.com/t/experimental-code-return-an-array-of-numbers-between-two-values/32035), but nothing seems to populate the cell (no nice values appearing in bubbles). What am I doing wrong?

 ![Screenshot 2024-02-26 at 11.18.30 AM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/3/c3136033410fe16d0e06eeb124ddafb783e873e8.jpeg)

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [February 26, 2024, 4:41pm UTC](https://community.glideapps.com/t/need-help-getting-javascript-calculated-array-to-show-up-table/71178/2 "2024-02-26T16:41:42Z")

</div>

> [@lmshupp](#):
>
> Since it doesn’t support creating the array from calculated values,

Can you expand on this? What kind of issues are you running into regarding Make Array and computed columns?

> [@lmshupp](#):
>
> I’m trying to do this with Javascript instead.

The javascript column can only return single text strings. You will have to join the array items into a single delimited text value and return that. Then use a Split Text column to convert it to an array.

---

<div class="post-metadata">

**Author:** ![lmshupp](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lmshupp/32/71440_2.png) [@lmshupp](https://community.glideapps.com/u/lmshupp)\
**Post date:** [February 26, 2024, 5:55pm UTC](https://community.glideapps.com/t/need-help-getting-javascript-calculated-array-to-show-up-table/71178/3 "2024-02-26T17:55:20Z")

</div>

That worked! Thank you. I didn’t realize that Javascript columns could only return text strings. I used toString() on the return.

I also appreciate the tip to use the Split Text column next, because I didn’t know about that column type. Since Make Array expects values to come from separate columns, I would have been stuck on the next step.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [March 4, 2024, 5:56pm UTC](https://community.glideapps.com/t/need-help-getting-javascript-calculated-array-to-show-up-table/71178/4 "2024-03-04T17:56:05Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
