• Calculated Tree nodes

    By Chintan Parekh 1 decade ago

    Hi,

    I am designing an accordion container and I have got a container node which contains links for each user in my company.

    Just wondering whether it is possible to have this automatically as in calculated repeat loop inside it(As number of users may change) . I tried using repeat control but thats not supported by inner tags.

    Any suggestions?

    Here is the code:

     

    <xe:basicContainerNode label="Person">
    
    <xe:this.children>
    
    <xe:basicLeafNode label="Chintan Parekh">
    
    </xe:basicLeafNode>
    
    <xe:basicLeafNode label="Christian Schulte">
    
    </xe:basicLeafNode>
    
    </xe:this.children>
    
    </xe:basicContainerNode>
    

    I have a ready view which contains name of each users so i can calculate the label names but not count of number of leaf nodes.

    Thank you for any help.

     

    • A managed Bean based on ITreeNode would help

      By Christian Güdemann 1 decade ago

      Hello

      You should be abel to solve this issue by writing ab managed bean, witch is based on a ITreeNode. Samples are very rare but a little bit reverse engeniering with the source code will help. Maby I can next week post some sample code.

      Best regards

      Chris

      • Thank you

        By Chintan Parekh 1 decade ago

        Ok..That should be it I gues...

        I would surely try to use that..

        But would be waiting for some examples from you..just in case if I am not able to do it..

        • need Dynamic Accordance Samples

          By MA khatri 1 decade ago

          I need a sample code how to create Dynamically Accordance in XPages.

           

      • Done

        By Chintan Parekh 1 decade ago

        I used the dominoViewEntriesTreeNode for labels and later for links I used a hidden field which calculated the count of values.