Hi,
I am trying to set the value of two fields when another item within a replicant item is changed. The Form API code works fine but when I save the form it throws the error:
"Save was unsuccessful. Invalid category/type null was received."
Here is the code
function setDefaultImageDimensions(item){
align = item.getValue();
if(align == 0){ height = 150; width = 48; }
else if(align == 1){height = 156; width = 86;}
heightItem = IWDatacapture.getItem(item.getName()+'/../Height');
heightItem.setValue(height);
widthItem = IWDatacapture.getItem(item.getName()+'/../Width');
widthItem.setValue(width);
}
Everything works fine when I remove the above code.
Any help is appreciated.
Thanks a lot,
-H
Environment: TeamSite 6.5 on Solaris 9 .