Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Smart GWT TreeGrid widgets Datasource design

    Hi,
    I am using smart GWT version 2.5 and using TreeGrid widget in it.
    My requirement is : I have 2 kind of nodes in tree: 1) Product & 2)Relationship between 2 Products
    My Tree structure in the requirement is between 2 product they are related in tree by relationship node
    e.g.
    1) Product p1 is related to product p2 by relationship R1
    so Tree structure is: p1-R1-p2


    1) Product p1 is related to product p2 by relationship R1 and product p2 is related to p3 by relationship R2
    so Tree structure is: p1-R1-p2-R2

    How can I design XML:Datasource.ds.xml for this and how can code inside java class: that extends Datasource to relate this so that I can build a tree.

    Sample xml for example:1) is
    <Product>
    <id>77000</id>
    <name>p1</name>
    <Relationship>
    <name>R1</name>
    <id>10009</id>
    <Product>
    <parentid>77000</parentid>
    <name>p2</name>
    <id>77001</id>
    </Product>
    </Relationship>
    </Product>

    #2
    any suggestions?

    Comment

    Working...
    X