Paul,Thanks for being so patient. I know you guys hate us newbies. This
is in FormCalc, not JavaScript, correct? I had to change != to <> or got
syntax error.After that, got the followign error message:Accessor
oDB.nodes.item("1").query.setAttribute("text","commandType") is
unknownButton know looks like this:var nIndex =
0while(xfa.sourceSet.nodes.item(nIndex).name <> "DataConnection2")
donIndex = nIndex + 1endwhilevar oDB =
xfa.sourceSet.nodes.item(nIndex).clone(1)if (HasValue(SelectID))
thenoD...