How do I import CSV file to be used in Rex plugin CSVTOARRAY

Get help using Construct 2

Post » Tue Jan 26, 2016 4:34 pm

I want to import a csv file that I created to be used in the plugin CSVTOARRAY, this file is currently in the Files folder in my project.
B
7
Posts: 21
Reputation: 325

Post » Tue Jan 26, 2016 4:40 pm

I'm not sure if you can directly use the name of the file, but if you can't you can request it with ajax and use ajax.lastdata..

for more information have a look at the manual for ajax and project-files..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Jan 26, 2016 5:39 pm

@LittleStain I tried the ajax option but the problem is that the project snap
can you check the screenshot to see if I am using the ajax correctly
"https://drive.google.com/drive/folders/0B1pGW-xaP8VfMXVpRWZPZVo2Y0U"
B
7
Posts: 21
Reputation: 325

Post » Tue Jan 26, 2016 5:43 pm

Ramez1 wrote:@LittleStain I tried the ajax option but the problem is that the project snap
can you check the screenshot to see if I am using the ajax correctly
"https://drive.google.com/drive/folders/0B1pGW-xaP8VfMXVpRWZPZVo2Y0U"


If you could give a link that I can open, I could take a look..
This link can't be opened..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Jan 26, 2016 5:50 pm

oh sorry here is the link "https://drive.google.com/open?id=0B1pGW-xaP8VfN3p6cUpFY2RzdE0"
B
7
Posts: 21
Reputation: 325

Post » Tue Jan 26, 2016 5:59 pm

Well yeah, that will not work..

How to make a request:

The basic usage of the AJAX object consists of:

- Use the Request action to load a URL.
- A moment later after the request completes, On completed triggers.
- The LastData expression can be used to access the content of the response.

There's an event "Ajax on completed", which will trigger when the request is completed..
Before the request is completed, you won't be able to use the ajax.lastdata..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Jan 26, 2016 6:15 pm

@LittleStain Thank you so much, helped a lot
B
7
Posts: 21
Reputation: 325


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], markuzz78, skrotar, yme, Youtopize and 8 guests