How to import/export data from section?

In this tutorial you will learn how to import data to section and how to export data from it.

If you don't want to create your own file to import you can use the 'data' attachment. It contains data used in the tutorial.


1.Raport form

Add a new table widget. Name it 'yearly_raport'. Columns name: time, sold (pcs.), value per piece and income. First three columns set as editable. Last three columns type change to 'number'. Choose 'allow add rows' option. The income will be value per piece multiplied by the amount of sold pieces, so in column D type a formula: =b*c.





Add a new spreadsheet section with two cells. In first type 'average income' and in second a formula that will calculate it, also change it's type to 'Number':




We want the cells in column 'income' to change color based on the fact if the income in the cell is higher or lower than average. In order to do this we will use conditional formatting (read more here).

Create two styles: style1- for cells with income lower than average and style2 for those with income higher than or average.


For 'income' column in style options choose 'compute style using formula'. 


Put in 'style formula' field this formula:



3.Workflow (optional)

Add workflow actions widget. Go to workflow tab and add one state 'sent' and one action 'send raport'. Add yourself as the app creator and save changes.




Now, run your app. The table should only have one empty row.


Right-click on the table and choose 'import from excel/.csv'.


Choose the file with your data. The data will fill the table by matching column names: A to A, B to B and so on. Based on the imported data the app should calculate the income and colour the cells. 


Now, that the needed calculations were made we can export our data by right-clicking the table and choosing the 'export to .csv' option.



Have more questions? Submit a request


Article is closed for comments.
Powered by Zendesk