Page 1 of 1

How to change mapped value by adding JS?

Posted: Mon Aug 18, 2014 6:15 pm
by Dan Hoeck

Hi,

I am having an issue identifying a mapped value. I am ultimately mapping a date from my database to a label. My entire code is at the bottom, but my issue is really with the following piece:

var date = "'+value+'";

How do I properly code the mapped value to set the variable?

My full code is as follows:

var date = "'+value+'";
var i = date.split("/"),
j = i[0],
k = i[1],
l = i[2];
return(k + '/' + l);

It's being used to rearrange the date format.

Thanks again for your help!

Dan


How to change mapped value by adding JS?

Posted: Mon Aug 18, 2014 6:29 pm
by Evgene Karachevtsev

Dan,

You shouldn't use these quotes, could you please try:
prevar date = value;/pre


How to change mapped value by adding JS?

Posted: Mon Aug 18, 2014 6:49 pm
by Dan Hoeck

perfect! Thank you!