FieldName enclosed in {} in IC1FlexReportRecordset

Posted by: info on 26 April 2022, 6:20 pm EST

  • Posted 26 April 2022, 6:20 pm EST

    Hello.

    C1.WPF.Report.Ja 6.0.20221.218

    I want to use the FieldName enclosed in {} in IC1FlexReportRecordset;
    Can I use "{}"?

    https://devlog.grapecity.co.jp/c1-flexreport-design/
    In this code

    _fields = new Dictionary<string, Type>()
    {
    { "ID", typeof(int) },
    { "Name", typeof(string) },
    { "RegDate", typeof(DateTime) },
    };

    so, I have ported to WPF like this

    1 _fields.Add("FieldName", typeof(string));
    2 _fields.Add("{FieldName}", typeof(string));


    1 is OK. GetFieldValue method is called.
    But "{FieldName}" is not recognized as a Key. GetFieldValue method is not called.

    in the .flxr file,

    <TextField>
    <Name />
    <Section>Detail</Section>
    (.....)
    <Text>
    <Expression>FieldName</Expression>
    </Text>
    </TextField>

    <TextField>
    <Name />
    <Section>Detail</Section>
    (.....)
    <Text>
    <Expression>{FieldName}</Expression>
    </Text>
    </TextField>
  • Marked as Answer

    Replied 26 April 2022, 8:01 pm EST

    Hi,

    The Expression only requires the bounded property name without any other symbol.
    Just like a bounded Property name is Age, then we need to set Age in Expression without any symbol.

    Regards,
    Nitin
  • Replied 27 April 2022, 11:48 am EST

    Thank you
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels