anchor.diff:  		}
   			
   		if(itemEmptyOption == 'true'){
  -			if(optionValueType ==='code'){
  +			if(optionValueType<%=randomInstance %> ==='code'){
   				opts += '<option value="">' + Liferay.Language.get(emptyOptionLabel) +'</option>'
   			}else{
   				opts += '<option value="0">' + Liferay.Language.get(emptyOptionLabel) +'</option>'
  
positive.code: 		
  			boundingBox = A.one('#<portlet:namespace/>col_<%=randomInstance %>' + level);
  			var data = null;
  			if(optionValueType ==='id'){
  				
  				if(parentItem != 0){
  					Liferay.Service(
  
negative.code: 			}
  		
  			if(parseInt(opt.dictItemId) == selectedItem && clearChild == false){
  				if(optionValueType<%=randomInstance %> ==='code'){
  					opts += '<option value="' + opt.itemCode + '" selected="selected">' + itemName + '</option>'
  				}else{
  					opts += '<option value="' + opt.dictItemId + '" selected="selected">' + itemName + '</option>'
  				}
  				
  			}else{
  				if(optionValueType<%=randomInstance %> ==='code'){
  					opts += '<option value="' + opt.itemCode + '">' + itemName + '</option>'
  				}else{
  					opts += '<option value="' + opt.dictItemId + '">' + itemName + '</option>'
  