Hi I have a DCT with a readonly text field. The value for this text box will be selected using a callout which opens a JSP page. Selected value in the popup window gets populated in the text field. Since this item is read only, once the text box is populated with proper value, still the item shows in highlighted mode(default teamsite validation that highlights item in red). Looks like onChange event is not getting fired when we populate value for an item using JavaScript. once the value is selected in the pop up I am calling a method present the parent window passing the selected value. This method sets the value for this text field on the form. I have tried window.top.datacapture.refreshForm(); and window.top.datacapture.refreshItem(itemName); methods after setting the value, but still item is highlighted in red. Is there any alternate solution for this issue ? This text filed has to be read only. I am using Teamsite 6.7.1 SP1 version on Solaris Operating System.
Hey Thanks for your reply. I tried to make that field editable by calling Item.setReadOnly(false);Before calling refershItem(item) method. But it did not work. Once the value is populated i am making the field read only. In this case text box is not showing as highlighted but Item Name on the form is still showing highlighted in red.I believe refreshItem() method is not applicable for a read only item. I even made that field editable by not specifying readonly="t" in DCT. Even this did not work. Item always requires keyboard or mouse interaction to fire that onchange event which unhighlights the item. Below is the code snippet.function setValue(item,key){ IWDatacapture.getItem(item).setValue(key); window.top.datacapture.refreshItem(item); item.setReadOnly(true); return true;}