nmlaur
Posts: 0
Joined: Tue May 20, 2014 2:43 pm

Saving data to Database

Not all of my fields are saving in my database when people click the submit button, The text they enter in the text box does not save, nor does the date it just shows up as mm/dd/yyyy

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Saving data to Database

Hello,

What fields are save data?
Please send screenshots with mapping your service and service settings.

nmlaur
Posts: 0
Joined: Tue May 20, 2014 2:43 pm

Saving data to Database

Image

All the other ones save except for those 2 fields

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Saving data to Database

Hello!

Could you clarify why do you use string type for date? It's better to use date type. Please also post mapping screemshot.

nmlaur
Posts: 0
Joined: Tue May 20, 2014 2:43 pm

Saving data to Database

Image

I changed the Date field and it still didn't change it.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Saving data to Database

Hello,

Could you please check if you have any errors in developer console?

nmlaur
Posts: 0
Joined: Tue May 20, 2014 2:43 pm

Saving data to Database

It tests fine

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Saving data to Database

Hi Nmalaur.

You probably mistaken in your mapping. (Sorry but screen shot you have provided above can not to answer this question).

See detail in screen shot: http://prntscr.com/3le7ok/direct

So you have to use "Date value" component property.

Please note: if you using "string" field type in DB - your direct mapping would be ok.

But if you using "Date" field type in DB - it requires some format to store it correctly.

See solution for this case:

1 Navigate to "Request" tab.

2 Find "Date" parameter in request tab and click "Add JS". http://prntscr.com/3aqhpn/direct

3 JS editor appears. Fill it with following code: http://prntscr.com/3aqic0/direct

precode

return new Date(value).toISOString().replace(/T.*/gi, "");

/code/pre

Regards.

Return to “Issues”