MulticolumnComboBox

Hi
 
In reviewing the HTML code for forms with multiple multicolumncombo boxes I notice there are multiple versions of the CCHighLightSelected type functions. Each of these has conditions within the routine based on the name of each control. I have not observed any bugs but am not sure if each object will be addressing each routine correctly. I suspect there should only be a single copy of these routines with parameters being passed identifying the calling object. Would you check if there is a possible pontential bug here.
 
Thanks
Mike

Hi,


There currently are no known issues with the IWMultiColumnComboBox control.
However this is a good suggestion and we'll investigate if the duplicate routines can be removed in a future version.

Hi Bart,

 
The problem outlined above definitely results in failure of forms with multiple lookups. I had to make the following source code change to get it to work. We still get multiple copies of the CScript for some reason?
 
      Add('function CCHighLightSelected(CName,obj,DoCase){');
      Add(''
        +'var editor = document.getElementById(CName + "");'#13
        +'var keyval = editor.value;'#13
        +'if (DoCase == false)'#13
        +'  keyval = keyval.toUpperCase();'#13
//ML!! Remove the HTML References so that all copies are the same
(*
        +'if ( ('+HTMLName+'obj.ItemIndex >= 0) && (! '+HTMLName+'obj.UsedKeyb))'#13
        +'  i = parseInt('+HTMLName+'obj.ItemIndex);'#13
*)
        +'if ( (obj.ItemIndex >= 0) && (! obj.UsedKeyb))'#13
        +'  i = parseInt(obj.ItemIndex);'#13
// To here
        +'else'#13
        +'i = CCBinary(obj,keyval);'#13
Hope this helps.
 

Hi Michael,


- The fix has now been implemented in the TIWMultiColumnComboBox control.
The update will be available with the next release of the TMS IW Component Pack.

- The issue with the multiple copies of the script seems to be related to IntraWeb and not the TMS control.
Unfortunately we don't have a workaround available at this time. We have contacted AtoZed about this and are awaiting their response.