Problem building a custom schema

Posted by: vtortola on 3 August 2017, 3:51 pm EST

  • Posted 3 August 2017, 3:51 pm EST

    Hi,

    I'm trying to build my custom schema but I have problems with the DateTime, I'm trying to do the same than in this example (split in Week, WeekDay, ..etc..)but dynamically. The attributes appears correctly, but when I drop them over the "columns" or "rows" area doesn't appear any data... seems like I'm doing something wrong, but after a while looking for the problem I couldn't figure out what is going on.

    I've attached an example project, and the problem is in the BuildDateTimeFields function, I think that is something related with the ColumnName or with the expressions.

    If somebody could take a look on it I'll be grateful :D

    Thanks in advance.

    Cheers.

    2008/11/WindowsFormsApplication1.zip
  • Replied 3 August 2017, 3:51 pm EST

    vtortola,
    It appears that the problem is caused by a missing QueryField.  You will need to include the actual field from the DataSet as a query field along with the date part fields.  You could add the field simply by passing its name as a parameter into the AddQueryFields method in your BuildDateTimeFields method.

    If you have any addtional questions please feel free to let me know.
  • Replied 3 August 2017, 3:51 pm EST

    Hi,

    Right, that was the problem, is already working :)

    Thanks.
Need extra support?

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

Learn More

Forum Channels