Dan Hoeck
Posts: 0
Joined: Sat May 17, 2014 3:55 am

How to change mapped value by adding JS?

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

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

How to change mapped value by adding JS?

Dan,

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

Dan Hoeck
Posts: 0
Joined: Sat May 17, 2014 3:55 am

How to change mapped value by adding JS?

perfect! Thank you!

Return to “Issues”