docs: function isValidRefValue(recordTypes, val, propDesc) {
  
  	if ((typeof val) !== 'string')
  		return false;
  
  	const hashInd = val.indexOf('#');
  	if ((hashInd <= 0) || (hashInd === val.length - 1))
  		return false;
  
  	const refTarget = val.substring(0, hashInd);
  	if (refTarget !== propDesc.refTarget)
  		return false;
  
  	const refTargetDesc = recordTypes.getRecordTypeDesc(refTarget);
  	const refIdPropDesc = refTargetDesc.getPropertyDesc(
  		refTargetDesc.idPropertyName);
  
  	if ((refIdPropDesc.scalarValueType === 'number') &&
  		!Number.isFinite(Number(val.substring(hashInd + 1))))
  		return false;
  
  	return true;
  }