Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dipa 88 posts 370 karma points
    Feb 25, 2016 @ 09:52
    Dipa
    0

    Set dropdown value from another tree node(Sub childs) values in document type

    Hello,

    I want to set one dropdown in document type, which should be the list of another document type list.

    Means, I have created one document type 'Client Types', which is blank document type and its child document type call 'Client Type', which contains one text field for name.

    Now I have created one new Document type called 'Clients', Which is also blank and its child document type called 'Client'.

    Means, in my Content Node, tree structure is like below :

    Content
        Client Types <- DocumentType('Client Types')
            Client Type1 <- DocumentType('Client Type')
            Client Type2 <- DocumentType('Client Type')
            Client Type3 <- DocumentType('Client Type')
            Client Type4 <- DocumentType('Client Type')
            Client Type5 <- DocumentType('Client Type')
        Clients <- DocumentType('Clients')
            Client1 <- DocumentType('Client')
            Client2 <- DocumentType('Client')
            Client3 <- DocumentType('Client')
            Client4 <- DocumentType('Client')
            Client5 <- DocumentType('Client')
    

    Now My query arise. I want one dropdown in 'Client' document type, and its values should be the list of 'Client Type' document type. How can I set that? And also I want to display Both sub child list in page.

    Please help me for it. And if you have any query, ask freely.

    Thank You.

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Feb 25, 2016 @ 10:26
    Hendy Racher
    1

    Hi Dipa,

    For a drop down of Client Types, you could use the Xml DropDown Picker in nuPickers with the XPath expression (assuming the alias is 'Client'Type' without a space):

    //ClientType
    

    What do you mean by: "And also I want to display Both sub child list in page" ?

    HTH, Hendy

  • Dipa 88 posts 370 karma points
    Feb 25, 2016 @ 10:44
    Dipa
    0

    Hi Hendy,

    'And also I want to display Both sub child list in page', means I want to display

    Client Type1 
    Client Type2 
    Client Type3 
    Client Type4 
    

    and also

     Client1
     Client2
     Client3
     Client4
    

    in page. For your given link, I'll check it soon.

    Thanks, Dipa

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Feb 25, 2016 @ 10:44
    Dave Woestenborghs
    100

    Hi Dipa,

    In this article I explain how you can use nuPickers as a replacement for a default content picker : http://skrift.io/articles/archive/the-king-is-dead-long-live-the-king/

    The same could apply for a dropdown.

    Dave

  • Dipa 88 posts 370 karma points
    Feb 25, 2016 @ 11:20
    Dipa
    0

    Hi Dave,

    I got my solution.

    Thanks, Dipa

Please Sign in or register to post replies

Write your reply to:

Draft