Copied to clipboard

Flag this post as spam?

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


  • Martin Rud 261 posts 1002 karma points c-trib
    Mar 08, 2022 @ 08:24
    Martin Rud
    0

    MNTP xpath: Find nearest ancestor with alias organization and go down to first descendant with alias settings-folder

    Hi,

    I have this MNTP property: enter image description here

    It is placed in slide items (they are in the folder 'Organisation x slides') and I want the dialog to open in the folder 'Organisation x settings'.

    How is this achieved? It must find the nearest ancestor with alias 'organization' and go down to first descendant with alias 'settings-folder'. But I cant make it work.

    enter image description here

  • Wojciech Tengler 96 posts 199 karma points
    Mar 08, 2022 @ 09:31
    Wojciech Tengler
    100

    Let's try something like this:

    $current/ancestor::organisation/folder [@nodeName = 'Organisation x settings']
    

    You need to set proper aliases of node types in this xPath query.

  • Martin Rud 261 posts 1002 karma points c-trib
    Mar 08, 2022 @ 09:51
    Martin Rud
    0

    Cool, it works! Thanks! :)

    With the simplified alias names this is what did the trick:

    $current/ancestor::organisation/folder
    
Please Sign in or register to post replies

Write your reply to:

Draft