# Column key in temporary tables

**URL:** <https://forum.seatable.com/t/column-key-in-temporary-tables/6062>\
**Category:** Scripts (Python and JS)\
**Created:** [December 15, 2024, 1:22pm UTC](https://forum.seatable.com/t/column-key-in-temporary-tables/6062 "2024-12-15T13:22:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ROM](https://forum.seatable.com/letter_avatar_proxy/v4/letter/r/3e96dc/32.png) [@ROM](https://forum.seatable.com/u/ROM)\
**Post date:** [December 15, 2024, 1:22pm UTC](https://forum.seatable.com/t/column-key-in-temporary-tables/6062/1 "2024-12-15T13:22:11Z")

</div>

Hi there,

I’m testing seatable if it is suitable for our internal information-flow to avoid all this free-flying excel-sheets, nobody can find again 🙂

Now to my actual issue:

I have two tables in the base, one for employees, one for trainings.  
They are linked via one field to have a connection which employee absolved which trainings.

To have an overview i made a simple python-script which creates a kind of pivot-table (“trainingmatrix”), that works well and as expected.

But:  
I want to give also access to “trainingmatrix” (readonly) to my users, using a universal app and here it comes to struggle me.

When somebody changes things in this two source tables, the automation starts the script and the table “trainingmatrix” is build up newly.  
After that all the new created columns are set to “hidden” in the app.

I assume, that this is linked to the “key” field of the column.  
So my questions are:

- Is it possible to give a kind of “costum\_key” to the column, when created via script?
- Is it possible to set all found columns to “visible” in the app by any automated way?

Thanks for reading

ROM

---

<div class="post-metadata">

**Author:** ![rdb](https://forum.seatable.com/user_avatar/forum.seatable.com/rdb/32/1869_2.png) [@rdb](https://forum.seatable.com/u/rdb)\
**Post date:** [December 16, 2024, 9:39am UTC](https://forum.seatable.com/t/column-key-in-temporary-tables/6062/2 "2024-12-16T09:39:16Z")

</div>

I think you make things way to complicated. Why not use the pivot table function that SeaTable natively offers in the base (“Statitics”) or in the app (“Custom” page type \> statistics element).

 ![image](https://forum.seatable.io/uploads/default/original/2X/4/4d353e35be8fa61a774dca47a573b7ecd200049b.png)

---

<div class="post-metadata">

**Author:** ![ROM](https://forum.seatable.com/letter_avatar_proxy/v4/letter/r/3e96dc/32.png) [@ROM](https://forum.seatable.com/u/ROM)\
**Post date:** [December 16, 2024, 12:16pm UTC](https://forum.seatable.com/t/column-key-in-temporary-tables/6062/3 "2024-12-16T12:16:06Z")

</div>

Hi rdb,

Sure i found this function and it works well.

But my results are boolean, that means that is shown as 1 or 0 in the standardfunction, so this is an optical issue and so not very intuitiv for my users (i‘m using checkboxes and lock them in the app)

Moreover i want to have additionally some columns, which are not rebuilt every time…

At the moment i think about to build the table once with enough columns for the employees and rebuild only the rows and just rename the columns…

Br

ROM

---

<div class="post-metadata">

**Author:** ![rdb](https://forum.seatable.com/user_avatar/forum.seatable.com/rdb/32/1869_2.png) [@rdb](https://forum.seatable.com/u/rdb)\
**Post date:** [December 19, 2024, 9:39pm UTC](https://forum.seatable.com/t/column-key-in-temporary-tables/6062/4 "2024-12-19T21:39:14Z")

</div>

> [@ROM](#):
>
> At the moment i think about to build the table once with enough columns for the employees and rebuild only the rows and just rename the columns…

Seems like a reasonable approach.

---

<div class="post-metadata">

**Author:** ![system](https://forum.seatable.com/uploads/default/original/1X/04603423fe81a46c321283663086c475429e8ccb.png) [@system](https://forum.seatable.com/u/system)\
**Post date:** [December 26, 2024, 11:23pm UTC](https://forum.seatable.com/t/column-key-in-temporary-tables/6062/5 "2024-12-26T23:23:01Z")

</div>

Closed on December 26, 2024, 11:23pm UTC

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