/** Function to set the label for a specified field. This is a dirty hack that is only tested on IE 6.0 with TS 6.5 SP1.@param itemName Name of the item to be changed.@param newLabel Label to be assiged to the item.*/function setLabel(itemName, newLabel) { // hacky way to get the ID of the HTML DOM object which contains the label text var label_id = "label_" + IWDatacapture.getItem(itemName).itemImpl.instanceID; try { // Try to set the label top.document.formframe.document.getElementById(label_id).innerHTML = newLabel; } catch (e) { // If this code is running onInit, it will fail if the page isn't laid out // yet. This will tell it to try again in 0.1 seconds on failure. setTimeout("setLabel('" + itemName + "','" + newLabel + "');", 100); }}
var text_id = "text" + IWDatacapture.getItem(itemName).itemImpl.instanceID;top.document.treeFrame.document.getElementById(text_id).innerHTML = newLabel;
How can i modify the code to work in 6.7.2 version as setLabel is causing problem for me?Thanks in advance
what kind of a problem are you having with setLabel? i remember there was bug in it when using it with nested replicants. but it might have been fixed in 6.7.2.