Search found 5 matches

Go to advanced search

by ridxery
Tue May 13, 2014 10:32 pm
Forum: Issues
Topic: Is there anyway I can limit the string length in the database or before sending latitude and longitude to the database?
Replies: 8
Views: 1305
 
Jump to post

Is there anyway I can limit the string length in the database or before sending latitude and longitude to the database?

you dont need to create local variables to the this, any entity got JS button next to them however saving user's location would be good , you might need it again.

by ridxery
Tue May 13, 2014 10:30 pm
Forum: Issues
Topic: Is there anyway I can limit the string length in the database or before sending latitude and longitude to the database?
Replies: 8
Views: 1305
 
Jump to post

Is there anyway I can limit the string length in the database or before sending latitude and longitude to the database?

you can do it on mapping tab like create 2 local variables from right top at data mapping tab, then you can click to add JS (next to the created local variable) you should see a tab saying, function (value , element) { parseFloat(value).toFixed(6); } PS: you dont need to create local variables to do...
by ridxery
Tue May 13, 2014 9:48 pm
Forum: Issues
Topic: Is there anyway I can limit the string length in the database or before sending latitude and longitude to the database?
Replies: 8
Views: 1305
 
Jump to post

Is there anyway I can limit the string length in the database or before sending latitude and longitude to the database?

Use Javascript to format it like this:

Number(1.33555).toFixed(2); // 1.34 , toFixed() rounding up too, if you dont believe me test it :

http://jsfiddle.net/FQTqk/730/

Go to advanced search