Skip to Content
author's profile photo
Former Member

Table UI Design

Hi,

What I want to acheive right now is something like this..

For every row in Column 1 i need multiple rows in the remaining columns. Something corresponding to the following context node {Please ignore the dots(.) they're substitutes for blank spaces, for formatting }

Context

|


Table (NODE)

...

...|-OuterAttr1 (Attribute)

...|----InnerNode (NODE)

......|-InnerAttr1 (Attribute)

......|-InnerAttr2 (Attribute)

......|-InnerAttr3 (Attribute)

Is there something like a ROWSPAN that I can set for the 1st column? And even then the problem is that the number of rows corresponding to that is dynamic.

OR

Alternatively is there anyway to embed a Table( or a Container Element such as Group) into the 2nd column of the Outer Table?

The second alternative is very lucrative.

Regards,

Ashish.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    author's profile photo
    Former Member
    Posted on Jan 20, 2005 at 08:39 AM

    Hi Ashish

    The table control as far as I know does not give these kinds of functionalities. Or we should wait for Armin to respond 😉 .

    But you could achieve something like this

    Column1 |

    -


    Master

    -


    Column2| Column3 | Column4

    -


    Detail1 Detail1 Detail1

    Detail2 Detail2 Detail2

    ===================================

    Column1 |

    -


    Master2

    -


    Column2| Column3 | Column4

    -


    Detail1 Detail1 Detail1

    Detail2 Detail2 Detail2

    ===================================

    What you could do is generate tables dynamically on the fly ,I assume that you have two kinds of data here master and detail and you want the master to be shown first and then the set of detail. For every master record generate a table dynamically with a single row and bind it to the record. Remove your footer.

    And for a group of detail records generate a table dynamically with and bind to the detail records. Remove the footer. You can use the invisble UI element to achieve some padding at the start

    Regards

    Pran

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Pran,

      Your reply is helpful, but my requirements need me to show all the "detail data" (the relationship isn't actually master-detail as far as the user/client is concerned) as well... the user should not have to click every time he wants to see the details.(which is why i had asked for countainer elemts as cell editors)

      If you can come up with something for that.

      Thanks & Regards,

      Ashish

  • author's profile photo
    Former Member
    Posted on Jan 20, 2005 at 11:09 AM

    Hi,

    1. Create "denormalized" plain context node, where OuterAttrs are repeated for every InnerNode.

    2. Add attribute IsVisible (type Visibility / WDVisibility) to this node, set in supply function VISIBLE only for first row in group

    3. Bind table to this plain node as usual, then bind visibility of column editors corresponding to OuterAttrs to IsVisible attribute

    VS

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Man... I really feel dumb now. That's it. I just didn't know that master column meant tree column. They really should use a more descriptive name... Oh well.

      Thanks for the responses folks,

      DS