# Script instruction upload all lines

**URL:** <https://forum.seatable.com/t/script-instruction-upload-all-lines/3436>\
**Category:** Scripts (Python and JS)\
**Tags:** universal-app\
**Created:** [May 3, 2024, 8:29am UTC](https://forum.seatable.com/t/script-instruction-upload-all-lines/3436 "2024-05-03T08:29:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Remi](https://forum.seatable.com/letter_avatar_proxy/v4/letter/r/ed8c4c/32.png) [@Remi](https://forum.seatable.com/u/Remi)\
**Post date:** [May 3, 2024, 8:29am UTC](https://forum.seatable.com/t/script-instruction-upload-all-lines/3436/1 "2024-05-03T08:29:42Z")

</div>

Hello,

I am using a Python script to create a new line triggerd by a button.  
When this script is used in a universal-app, the new line doesn’t show up until user click on the bottom of the window : “upload all lines”  
Is there a python instruction to upload all lines (and save one click from the user) ?

Thanks !

---

<div class="post-metadata">

**Author:** ![fsa](https://forum.seatable.com/user_avatar/forum.seatable.com/fsa/32/2567_2.png) [@fsa](https://forum.seatable.com/u/fsa)\
**Post date:** [May 3, 2024, 8:50am UTC](https://forum.seatable.com/t/script-instruction-upload-all-lines/3436/2 "2024-05-03T08:50:50Z")

</div>

Hey Remi,

On which page type of the Universal App are you using the script via button? Which “upload all lines” are you talking about?

It is correct that the page must be refreshed after the script for creating a new line has run in order to display the new line.

---

<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:** [May 3, 2024, 9:15am UTC](https://forum.seatable.com/t/script-instruction-upload-all-lines/3436/3 "2024-05-03T09:15:09Z")

</div>

I understand the issue. The script adds a new row, but the row is only displayed once the browser window is refreshed.

Unfortunately, the Python script runs server-side. This is why you cannot give a refresh signal to the browser.

---

<div class="post-metadata">

**Author:** ![Remi](https://forum.seatable.com/letter_avatar_proxy/v4/letter/r/ed8c4c/32.png) [@Remi](https://forum.seatable.com/u/Remi)\
**Post date:** [May 3, 2024, 11:41am UTC](https://forum.seatable.com/t/script-instruction-upload-all-lines/3436/4 "2024-05-03T11:41:49Z")

</div>

ok, I understand.

To better explain : the ‘Load all’ at the very bottom of the window shows the added line once clicked upon  
 ![image](https://forum.seatable.io/uploads/default/original/2X/4/4a201ffbaa5e6b70a37e90bf129eb686d45c7bc3.png)

whereas the browser’s refresh does not show the added line.

---

<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:** [May 5, 2024, 7:45am UTC](https://forum.seatable.com/t/script-instruction-upload-all-lines/3436/5 "2024-05-05T07:45:02Z")

</div>

Ah, so you have a large number of rows in this table.

We’ll see if we can make the behaviour more comfortable

---

<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:** [May 7, 2024, 7:45am UTC](https://forum.seatable.com/t/script-instruction-upload-all-lines/3436/6 "2024-05-07T07:45:14Z")

</div>

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