I did the next test, putting the code in a button and try to set the value for field a1_21 to 3
i = 2;
elem1 = ' "#{id:a1_' + i + '1}'+'" ';
var fullStringToExecute = "document.getElementById(" + elem1 + ").value";
eval(fullStringToExecute) = 3;
When i send alert(fullStringToExecute) it shows the next string
document.getElementById("").value
It looks like xpages don't understand the special chars like #{: in a string.
Is it possible that i should use escape chars for those special chars?
I will give it a try using escape chars .
thnx