in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

Question about XRTable and cell value

Last post 11/20/2008 10:56 AM by M P_1. 2 replies.
Page 1 of 1 (3 items)
Sort Posts:
Previous Next
  • 11/17/2008 11:28 AM

    • M P_1
    • Not Ranked
    • Joined on 11/17/2008
    • Posts 2

    Question about XRTable and cell value

    I have a lot of question.

    I have a table build up like this:

    TITLE1     TITLE2        TITLE3          TITLE4         TITLE5         TITLE6

    VAL1      VAL2          VAL3           .....

     

    i built this table manually and i have a question.

     

    1) There's a way to create a table dynamically? (For example i read the dataset and i built up the table by for cycles? this because i can have more than 100 o 200 parameters)
    like:

    for (i=0, i<dataset.lenght, i++)
        new row(...);

     

    2) i have to read cell values of this table, they can be of different values. if the value is 1, 2, 3 i have to write in che cell "OK", "error","standby", for example..

    How can i do this?

    i read the GetCurrentColumnValue functions but i'm so sad i don't understand it :(

    Someone of you can explain me how to read the entire table, and decide if there are different cells value to write different messages in the same cell of the table?

     

    Thanks in advance

  • 11/20/2008 8:37 AM In reply to

    Re: Question about XRTable and read a cell value

    Hello,

    Actually, it is not clear to me from your post why you should use tables for this task.

    As far as I understand, it can be solved by placing the required data-bound XRLabel controls onto the report's Detail band, as this band is intended exactly to be repeated as many times as there are rows in a dataset. The headers for these labels can be placed at the PageHeader band. If you wish to use tables, you can find an example of a similar report at How to: Create a Table Report. So, the first part of your task can be solved in this way.

    As for the second part, I don't quite understand what is going wrong with the GetCurrentColumnValue. In general, all should work perfectly. And, you can conditionally change your controls' text using an approach somewhat similar to the one described at How to: Conditionally Change a Control's Appearance.

    Does this help you?

    R&D, .NET Team.

    PS. If you wish to receive direct assistance from our Support Team, use Support Center at http://www.devexpress.com/sc.
  • 11/20/2008 10:56 AM In reply to

    • M P_1
    • Not Ranked
    • Joined on 11/17/2008
    • Posts 2

    Re: Question about XRTable and read a cell value

    Thanks George for your reply. Are you right, I'm not writing very well..Tongue Tied

    Anyway, I post a screenshot as you can understand.

    I'm using Movicon, a software for automation that incorporate yours xtraReports application. I can create reports from a set of variables, and that's I did. You can see the list of variables in the dataset. The problem is that they are not interpreted as rows in a dataset but I think they are interpreted as single and indipendent variables. So i can't creat a table as usual:

    User_ID      Name      Surname
    ....              ......         .....


    because my dataset is seen as a list of variables...and not like a real table with rows and columns. To create a table i must insert all the variables rows per rows. That's not a problem if I have 10 or 20 records, but when they start to be more than 100 it's still became a problem...:)


    What I wanted to ask is if there are some scripts that can see how many variables there are in the dataset and so i can, i some ways, try to create the table dynamically..

     

    Thanks again for your support

Page 1 of 1 (3 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED