This all works fine if there are 200 or fewer items on the destination data repeater. When there are over 200 or so items, it seems to lose the text boxes on the later ones. There is no error. The javascript gets a reference to the text box, it uses the correct id, but the text doesn't change.
Any ideas on why a large number of items on a data repeater would cause this?
I will say this is a complex app with lots of hidden fields. Here is some of the javascript it uses.
Expand|Select|Wrap|Line Numbers
- function ResetMergeLine(obj, lineNo) {
- if (pageLocked == true) { // Only allow if page is unlocked (not saved)
- return false;
- }
- if (obj.checked == false) { // find target line and reset it
- var dstPrefix = "rptr2_ctl"; // Source Estimate
- var dstIndex = (lineNo < 10) ? "0" + lineNo.toString() : lineNo.toString();
- var txtID = dstPrefix + dstIndex + "_txtMergeFrom";
- var txtBox = $get(txtID);
- if (txtBox) {
- txtBox.value = "";
- txtBox.disabled = false;
- mergeLineCount--;
- if (mergeLineCount < 0)
- mergeLineCount = 0;
- CheckMergeDirty();
- }
- else {
- alert("Internal Script Error. Could not find control: " + txtID + ".\n\n Contact Operations.");
- }
- }
- }
Thanks in advance.