Search found 16 matches

Go to advanced search

by Ralph Ngo
Tue Feb 18, 2014 12:53 am
Forum: Issues
Topic: Insert records on success event
Replies: 10
Views: 1709
 
Jump to post

Insert records on success event

Thank you all of you. I found the solution. I should use following code instead of joining each item manually.
precodevar createQuery = response.data/code/pre

by Ralph Ngo
Tue Feb 18, 2014 12:43 am
Forum: Issues
Topic: Insert records on success event
Replies: 10
Views: 1709
 
Jump to post

Insert records on success event

Hi, I tried JSON.stringify() but still can not import data into database. There is no error shown. There are blank records in my database after I run the script. My script is (after adjusted with JSON.stringify): precode var response = JSON.parse(localStorage.getItem("json_respo...
by Ralph Ngo
Mon Feb 17, 2014 11:05 am
Forum: Issues
Topic: Insert records on success event
Replies: 10
Views: 1709
 
Jump to post

Insert records on success event

Hi Katya, I tried with following code, but failed: precodefor (var i=0; i<response&#46;data&#46;length; i++) { var createQuery2 = '{"hash":' + response&#46;data &#46;hash + '"}'; var createQuery = '{"hash": "' + response&#46;data &#46;hash + '&qu...
by Ralph Ngo
Mon Feb 17, 2014 9:01 am
Forum: Issues
Topic: Insert records on success event
Replies: 10
Views: 1709
 
Jump to post

Insert records on success event

One more question, do we need the data format to be the same as in the collection?

by Ralph Ngo
Mon Feb 17, 2014 8:44 am
Forum: Issues
Topic: Insert records on success event
Replies: 10
Views: 1709
 
Jump to post

Insert records on success event

Also, if I put a variable in execute script, the editor will indicate I have error.

e.g: create_data.execute({createQuery});

by Ralph Ngo
Mon Feb 17, 2014 8:43 am
Forum: Issues
Topic: Insert records on success event
Replies: 10
Views: 1709
 
Jump to post

Insert records on success event

Hi Katya,

Yes, I want to write into database. What if some of the fields are null? What should I input?

by Ralph Ngo
Mon Feb 17, 2014 5:33 am
Forum: Issues
Topic: Insert records on success event
Replies: 10
Views: 1709
 
Jump to post

Insert records on success event

I've tried to invoke a create service in Javascript but it failed. Following is my code: precodevar response = JSON&#46;parse(localStorage&#46;getItem("json_response")); for (var i=0; i<response&#46;data&#46;length; i++) { var createQuery2 = '{"hash"::' + response...
by Ralph Ngo
Wed Feb 12, 2014 11:35 am
Forum: Issues
Topic: Page load/page show does not invoke service
Replies: 56
Views: 12333
 
Jump to post

Page load/page show does not invoke service

Yes. It's fixed now. Thanks for quick update.

by Ralph Ngo
Wed Jan 29, 2014 2:35 am
Forum: Issues
Topic: Page load/page show does not invoke service
Replies: 56
Views: 12333
 
Jump to post

Page load/page show does not invoke service

Yes, I created another test app and it worked

by Ralph Ngo
Tue Jan 28, 2014 11:05 am
Forum: Issues
Topic: Page load/page show does not invoke service
Replies: 56
Views: 12333
 
Jump to post

Page load/page show does not invoke service

Shared! I tried to recreate the page again. It's not working. Do I need to delete the project and create a new one? A new project I created with the tutorial looks good.

Go to advanced search