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); }
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)]); }