Copied to clipboard

Flag this post as spam?

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


  • Mila Pandurska 43 posts 190 karma points
    Oct 03, 2017 @ 15:55
    Mila Pandurska
    0

    Cascading(Dependant) MNTP or DropDowns

    I need help creating dependant controls. I have the following tree structureenter image description here

    I have Property document Type where I need: first control to select City second control to display the neighberhoods in the city

    I have problems creating the second control. I tried MNTP with XPath where I have this query:

     $site//PropertyPage[@id=./ancestor-or-self::node()[@id=./@id]/rootPicker/text()]
    

    However this doesn't work because what I noticed is that rootPicker (MNTP control) doesn't save the Id of the node but the key:

    <rootPicker><![CDATA[umb://document/ac15eb0c9ed1477dbb07fe09d3af0342]]></rootPicker>
    

    I am not sure how to modify the xpath query to get this work. In addition I woulld like the second control to update its values when the first control does without save or refresh the page.

Please Sign in or register to post replies

Write your reply to:

Draft