Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Transform Map - Convert To Uppercase

arobertson
Tera Guru

Hi All,

 

I'm trying to take my source value and save it as uppercase in the target field. I have the below code, which seems to be doing nothing at the moment.

 

target.u_hard_disk__gb_ = source.u_hard_disk__gb_.toUpperCase();

 

Regards,

1 ACCEPTED SOLUTION

bashashaik
Giga Contributor

Hi Alex,



Try this



answer = source. u_hard_disk__gb_.toUpperCase();



Thanks,


Basha


View solution in original post

5 REPLIES 5

Chandan23
Tera Expert

var input= source.u_hard_disk__gb_+"";


var res = input.toUpperCase();


target.u_hard_disk__gb_ = res;



This will work, try it


Thanks Chandan,



The target value is still showing as empty. The source & target names are correct. I can see the source value in the data source but it never reaches the target.



Below is the transform map script. The target field is a string.


Capture.PNG


Target field is an integer field? You are trying to put a string in it.   Or did you create your own RAM field?


bashashaik
Giga Contributor

Hi Alex,



Try this



answer = source. u_hard_disk__gb_.toUpperCase();



Thanks,


Basha