# \[Solved\] Stuck with formatting csv elements

**URL:** https://community.thunkable.com/t/solved-stuck-with-formatting-csv-elements/545961
**Category:** Questions about Thunkable X
**Tags:** solved, parse-csv
**Created:** [March 30, 2020, 9:39pm UTC](https://community.thunkable.com/t/solved-stuck-with-formatting-csv-elements/545961 "2020-03-30T21:39:31Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![bartiiee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bartiiee/32/53858_2.png) [@bartiiee](https://community.thunkable.com/u/bartiiee)
#### Post date: [March 30, 2020, 9:39pm UTC](https://community.thunkable.com/t/solved-stuck-with-formatting-csv-elements/545961/1 "2020-03-30T21:39:31Z")

</div>

Hye all

I’m building an app where I read data from my online database. Data is exported as csv so the app can read it.  
I’m able tot get all the rows and read them as row.  
Also able to select 1 row from the result list.

But I’m stuck when I want to split this row into pieces.

So, started with reading and used delimiter “newline”.  
Selected a row (testing purpose atm)  
tryed to format this row with delimiter “,”. But that gives no result at all.

Not with data from database, not with testlist I created in picture.  
(with data in picture first step gives “a,b,c” and “d,e,f”. Second step gieves “d,e,f”. Last step gives nothing).

Been trying and searching for the last hour and a half so I could really use some help (really frustrated atm.)

Thanks in advance!

 ![error](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/7/d78a53460b4249a80f21cae09f2b01d651f7e3d5.png)

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [March 30, 2020, 10:02pm UTC](https://community.thunkable.com/t/solved-stuck-with-formatting-csv-elements/545961/2 "2020-03-30T22:02:25Z")

</div>

how many columns are there?

---

<div class="post-metadata">

### Author: ![bartiiee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bartiiee/32/53858_2.png) [@bartiiee](https://community.thunkable.com/u/bartiiee)
#### Post date: [March 31, 2020, 10:52am UTC](https://community.thunkable.com/t/solved-stuck-with-formatting-csv-elements/545961/3 "2020-03-31T10:52:34Z")

</div>

For the one I’m trying now, 8 columns (and for the moment 2 rows for testing purpose, will be more afterwards)  
(Sorry for late responce; posted it just before I went to bed)

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [March 31, 2020, 1:21pm UTC](https://community.thunkable.com/t/solved-stuck-with-formatting-csv-elements/545961/4 "2020-03-31T13:21:07Z")

</div>

what Are you using for your database?

---

<div class="post-metadata">

### Author: ![bartiiee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bartiiee/32/53858_2.png) [@bartiiee](https://community.thunkable.com/u/bartiiee)
#### Post date: [March 31, 2020, 1:42pm UTC](https://community.thunkable.com/t/solved-stuck-with-formatting-csv-elements/545961/5 "2020-03-31T13:42:06Z")

</div>

mariadb.  
But don’t think database is the problem

App gets info trough webAPI en pulls csv file from database.  
I can split the data that comes in with the “newline” functions into rows.  
If I change “newline” to “,” in instance where data comes in, it splits it into cells.

Problem is I can’t do both. If I split it into rows, I get no result if I repaet it and try to split it into cells.

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [March 31, 2020, 2:14pm UTC](https://community.thunkable.com/t/solved-stuck-with-formatting-csv-elements/545961/6 "2020-03-31T14:14:42Z")

</div>

can you try something like this?

 ![Screen Shot 2020-03-31 at 9.59.25 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/f/8fa64a85b574e83956f8b53c828556f220e27f03.png)

---

<div class="post-metadata">

### Author: ![bartiiee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bartiiee/32/53858_2.png) [@bartiiee](https://community.thunkable.com/u/bartiiee)
#### Post date: [March 31, 2020, 2:46pm UTC](https://community.thunkable.com/t/solved-stuck-with-formatting-csv-elements/545961/7 "2020-03-31T14:46:48Z")

</div>

For some reason, this works now. Pretty sure I tried this yesterday but I can be mistaken.

 ![solved](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/f/cfc481b4ded49a56dc04678334f4b5169b701544.png)

Thank you for the help!  
Gonna try to put this in a loop now for each row when there are more then 1 line I need. Hope that works too.

Great work, thank you again!

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [March 31, 2020, 2:56pm UTC](https://community.thunkable.com/t/solved-stuck-with-formatting-csv-elements/545961/8 "2020-03-31T14:56:58Z")

</div>

Great work! All it takes is perseverance! Would you mind marking that as a solution? 🙂

---

<div class="post-metadata">

### Author: ![bartiiee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bartiiee/32/53858_2.png) [@bartiiee](https://community.thunkable.com/u/bartiiee)
#### Post date: [March 31, 2020, 7:50pm UTC](https://community.thunkable.com/t/solved-stuck-with-formatting-csv-elements/545961/9 "2020-03-31T19:50:10Z")

</div>

Seems someone beated me in marking a soluation 🙂

---

<div class="post-metadata">

### Author: ![Michael\_Rogulla](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@Michael\_Rogulla](https://community.thunkable.com/u/Michael_Rogulla)
#### Post date: [March 31, 2020, 11:31pm UTC](https://community.thunkable.com/t/solved-stuck-with-formatting-csv-elements/545961/10 "2020-03-31T23:31:35Z")

</div>

Hi @bartiiee,

would you mind to tell me how to import a CSV file into an app?

I would also import some data into an app, but I haven’t found an import function.

---

<div class="post-metadata">

### Author: ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)
#### Post date: [March 31, 2020, 11:33pm UTC](https://community.thunkable.com/t/solved-stuck-with-formatting-csv-elements/545961/11 "2020-03-31T23:33:58Z")

</div>

Hah! That was me @bartiiee 😂

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 11:39am UTC](https://community.thunkable.com/t/solved-stuck-with-formatting-csv-elements/545961/12 "2024-11-08T11:39:33Z")

</div>


