Below code will help us to Change Component properties through JavaScript.
We used it in one of the work units where the requirement was to change “Cancel” button Component property Label to “Return”.
Javascript on HTMLArea:
<script type=”text/javascript”>
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != ‘function’) {
window.onload = func;
} else {
window.onload = function() {
oldonload();
func();
}
}
}
addLoadEvent(function() {
document.getElementById(“#ICCancel”).value = “Return” ;
});
</script>
It appears that adding an HTML area with addLoadEvent no longer works in Tools 8.52. I was able to do this in 8.50, but since we upgraded the load event never gets loaded.
We are on 8.52 version and its working for us. Recently the Tools got upgraded from 8.49 to 8.52.
Regards
PKK