How to resolve an Array in a table column

6 posts, 0 answers
  1. Simon
    Simon avatar
    52 posts
    Member since:
    Sep 2018

    Posted 05 Nov 2018 Link to this post

    Hello,

    i have problems to resolve ExpensesData[] (Indexer,Array or what ever) in my table column.

    Please see the attached file.

    In the column "Fahrtzeit" I become the message --> ReportLibraryTest.DriverReportService.ExpensesData[]

    What can I do to get to the data.

    Is there an easy way to resolve contents of lists or arrays into table columns?

     

    Thats the implementation of ExpensesData[] in the Webservice:

      [System.Runtime.Serialization.DataMemberAttribute()]
            public ReportLibraryTest.DriverReportService.ExpensesData[] Expenses {
                get {
                    return this.ExpensesField;
                }
                set {
                    if ((object.ReferenceEquals(this.ExpensesField, value) != true)) {
                        this.ExpensesField = value;
                        this.RaisePropertyChanged("Expenses");
                    }
                }
            }

     

    thanks in advance.

     

  2. Todor
    Admin
    Todor avatar
    333 posts

    Posted 08 Nov 2018 Link to this post

    Hello Simon,

    The Expenses field from the DataSource is a collection, hence cannot be displayed in a TextBox. It should be bound to a data item (e.g. List).

    You can replace the TextBox in the Table column "Fahrtzeit" with a List and use Bindings to set it DataSource to Fields.Expenses.
    In the report designer it will be necessary to type manually the field names of the data stored in the Expenses collection inside the List TextBox. It there are no named fields (i.e. if the collection contains simple type, e.g. int) you should use Fields.Item to get the current value from the collection.
    Check the attached screenshot for clarity.

    Regards,
    Todor
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Simon
    Simon avatar
    52 posts
    Member since:
    Sep 2018

    Posted 08 Nov 2018 in reply to Todor Link to this post

    Thank you for your explanation.

    I have seen your screenshot an i dont know how to add row group and column group to the list.

    Sorry, I am not so familiar with Telerik Reporting.

    Can I take a table instead of the list?

    Then I would have a table in table.

     

  4. Todor
    Admin
    Todor avatar
    333 posts

    Posted 13 Nov 2018 Link to this post

    Hi Simon,

    To add groups to the List you may select the list and use Group Explorer - for example click on the  ellipses beside DetailGroup and select Add Group from the context menu.
    You may use also Table or other data item instead of List.

    Regards,
    Todor
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  5. faris
    faris avatar
    16 posts
    Member since:
    Jun 2012

    Posted 07 May Link to this post

    i got problem for grouping and listing the detail.

    this is my database

    RepType | name

    Team A   | Saet

    Team A   | Mickey

    Team B   | John

    In report. Group By Reptype.

    its will show

    Team A               Team B

    Saet                   John

    Mickey

     

    Please help me

     

  6. Todor
    Admin
    Todor avatar
    333 posts

    Posted 09 May Link to this post

    Hello faris,

    I have attached a sample report demonstrating how to use Report Group (grouping by RepType) and list the names for the corresponding group. I am not completely sure what the exact scenario is, so let us know if you have additional questions.

    Regards,
    Todor
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top