Example #1
0
        public static string GetBindingFieldName(MapBindingFieldPair bindingFieldPair)
        {
            ReportStringProperty fieldName = bindingFieldPair.FieldName;

            if (!fieldName.IsExpression)
            {
                return(fieldName.Value);
            }
            return(bindingFieldPair.Instance.FieldName);
        }
        public static object EvaluateBindingExpression(MapBindingFieldPair mapBindingFieldPair)
        {
            ReportVariantProperty bindingExpression = mapBindingFieldPair.BindingExpression;

            if (!bindingExpression.IsExpression)
            {
                return(bindingExpression.Value);
            }
            return(mapBindingFieldPair.Instance.BindingExpression);
        }
Example #3
0
        private static object GetBindingFieldValue(ISpatialElement coreSpatialElement, MapBindingFieldPair bindingFieldPair, string mapName, string layerName)
        {
            string bindingFieldName = SpatialDataMapper.GetBindingFieldName(bindingFieldPair);

            if (bindingFieldName == null)
            {
                return(null);
            }
            return(coreSpatialElement[SpatialDataMapper.GetUniqueFieldName(layerName, bindingFieldName)]);
        }