protected virtual void DataRendererInitialize(InitializationContext context)
        {
            CLSNameValidator.ValidateDataElementName(ref m_dataElementName, DataElementNameDefault, context.ObjectType, context.ObjectName, "DataElementName", context.ErrorContext);
            switch (m_dataElementOutputRDL)
            {
            case DataElementOutputTypesRDL.Output:
                m_dataElementOutput = DataElementOutputTypes.Output;
                break;

            case DataElementOutputTypesRDL.NoOutput:
                m_dataElementOutput = DataElementOutputTypes.NoOutput;
                break;

            case DataElementOutputTypesRDL.ContentsOnly:
                m_dataElementOutput = DataElementOutputTypes.ContentsOnly;
                break;

            case DataElementOutputTypesRDL.Auto:
                if (context.TableColumnVisible && (m_visibility == null || m_visibility.Hidden == null || m_visibility.Toggle != null || (ExpressionInfo.Types.Constant == m_visibility.Hidden.Type && !m_visibility.Hidden.BoolValue)))
                {
                    m_dataElementOutput = DataElementOutputDefault;
                }
                else
                {
                    m_dataElementOutput = DataElementOutputTypes.NoOutput;
                }
                break;
            }
        }
Example #2
0
 protected override void DataRendererInitialize(InitializationContext context)
 {
     base.DataRendererInitialize(context);
     CLSNameValidator.ValidateDataElementName(ref m_cellDataElementName, "Cell", context.ObjectType, context.ObjectName, "CellDataElementName", context.ErrorContext);
 }
Example #3
0
 private void DataRendererInitialize(InitializationContext context)
 {
     CLSNameValidator.ValidateDataElementName(ref m_dataElementName, m_name, context.ObjectType, context.ObjectName, "DataElementName", context.ErrorContext);
     CLSNameValidator.ValidateDataElementName(ref m_dataCollectionName, m_dataElementName + "_Collection", context.ObjectType, context.ObjectName, "DataCollectionName", context.ErrorContext);
 }
Example #4
0
 internal void DataRendererInitialize(InitializationContext context)
 {
     CLSNameValidator.ValidateDataElementName(ref m_dataElementName, "Value", context.ObjectType, context.ObjectName, "DataElementName", context.ErrorContext);
 }
Example #5
0
 protected override void DataRendererInitialize(InitializationContext context)
 {
     base.DataRendererInitialize(context);
     CLSNameValidator.ValidateDataElementName(ref m_detailDataElementName, "Detail", context.ObjectType, context.ObjectName, "DetailDataElementName", context.ErrorContext);
     CLSNameValidator.ValidateDataElementName(ref m_detailDataCollectionName, m_detailDataElementName + "_Collection", context.ObjectType, context.ObjectName, "DetailDataCollectionName", context.ErrorContext);
 }