[PLUGIN] Scenario

Post your completed addons to share with the community

Post » Mon Jan 14, 2013 12:03 am

@rexrainbow Thanks for this excellent plugin . I have a question regarding the CSV file. I have tried making CSV file in Excel, Google Docs, and Open Office; none of which give me acceptable format for this plugin. Major problem lies in the apostrophe "", some text get it and some not. For now I use Notepad++ to make and edit CSV file manually.

My question is how do you make compatible CSV file for this plugin with spreadsheet program?

Thank you very much!
B
21
S
5
G
1
Posts: 39
Reputation: 2,715

Post » Mon Jan 14, 2013 3:10 am

@baterism

There are two method to read csv file.
1. use AJAX to read file, the file does not need any modify.
2. replace single " to double "" in csv text file, then put this string in expression.
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

Post » Tue Jan 15, 2013 4:16 pm

@rexrainbow Thanks a lot for your response I never though about using AJAX. Does that mean I don't need to replace the " to "" if I use AJAX?
B
21
S
5
G
1
Posts: 39
Reputation: 2,715

Post » Tue Jan 15, 2013 11:00 pm

@baterism

Yes, you don't need to change anything if using AJAX to load csv string.
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

Post » Thu Jan 17, 2013 9:03 am

@rexrainbow Sorry to bother you, but can you please show the example of how using AJAX with Scenario? I have read some article in this site regarding using AJAX, but I still can't make it works.

What I do:

Import csv file from Project Bar -> Files
On start of layout, Request object file with AJAX
On completed AJAX -> ???

Thank you.
B
21
S
5
G
1
Posts: 39
Reputation: 2,715

Post » Thu Jan 17, 2013 9:15 am

@baterism
Use AJAX expression: LastData to get string under condition: On completed AJAX.
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

Post » Fri Jan 18, 2013 9:33 am

@rexrainbow I'm still unable to make it works. I've attached 2 capx, one with AJAX and other without. Using AJAX, it keeps showing error line 324 or something.

Without AJAX it runs like a charm, but it must use rex_function. Using official plugin make the text not appear when exported.

I'm sorry to bother you. I am trying to make tutorial to use Scenario plugin (in Indonesian, with free version), and I need to cover the use of AJAX with this plugin. Thanks.

http://dl.dropbox.com/u/70239636/Scenario.7z
B
21
S
5
G
1
Posts: 39
Reputation: 2,715

Post » Fri Jan 18, 2013 9:50 am

@baterism

Hum... Ok, I will check why official function could not be callback. It might be a bug. Thank you for this notification.
AJAX is another story.rexrainbow2013-01-18 09:50:49
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

Post » Fri Jan 18, 2013 3:35 pm

@rexrainbow No problem with AJAX after all. I still need to edit the CSV with notepad, but it is still better than editing inside C2 using copy-paste method. Thank you very much for your help rex!
B
21
S
5
G
1
Posts: 39
Reputation: 2,715

Post » Fri Jan 18, 2013 11:03 pm

@baterism

Using official function object to be callback after exporting works fine at firefox in my testing.rexrainbow2013-01-19 00:20:47
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests