I have this function
The array map contains a list of fields I want copied from localrecord to the array output. This function works fine for character fields but requires a bit more (it needs to be converted to a javascript array first) when it is array fields.Code:function test(localrecord) { var output = new Array(0) var map = new Array(0) map.push("number") map.push("brief.description") map.push("update.action") var count1 = map.length for( var i = 0; i < count1; i++) { output[i] = localrecord[map[i]] } }
So my question is how do I test the type so I can process the field properly?



Reply With Quote
Bookmarks