I am new to IPA and javascripting but so I was wondering if anyone can help me on how to create a fixed length field for use in an Assign node. I have a field that can vary in length that I need to include it in a flat file interface
I have been able to use "addTrailingSpaces" but this wont work when the data in the field are different lengths.
Probably an easy solution but I cant seem to find anything that works...Thanks in advance for any assistance you can provide!
var1 = '1234'; // this is the variable that you're passing in varLen = 8; // length that you want your variable to be for(i=var1.length;i var2 = var1; // rename variable to preserve original data var2 += '0'; // add 0's }