Copied to clipboard

Flag this post as spam?

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


  • Simeon Ostberg 123 posts 389 karma points
    Feb 25, 2022 @ 10:53
    Simeon Ostberg
    0

    Get property value into other SQL expression property value

    Hi everyone,

    I was wondering, if there is a way to get a property value into another SQL expression property value. This is what I want: In one document type ("site settings") I pick the edition of a congress, formatted as a numeric. In another document type ("highlight") I have an SQL expression as property value. It looks like:

    select distinct (...data...) from (...table...) WHERE ID_EDITION=(...congress edition picked above...)
    

    The document type "site settings" is not a parent, ancestor or child of "highlight". The structure is more like:

    Page
    - Homepage
    -- "highlight"
    - "site settings"
    

    Is the a way to get this?

    Thank you!

    Best, Simeon

  • Simeon Ostberg 123 posts 389 karma points
    Mar 01, 2022 @ 15:27
    Simeon Ostberg
    0

    Hi everyone,

    I would be happy, if anyone could assist. I didn't find anything here on the forum.

    Best, Simeon

  • Harikrishna Parmar 43 posts 262 karma points c-trib
    Mar 01, 2022 @ 17:27
    Harikrishna Parmar
    0

    Hi Simeon,

    You can find the child of root content whose document type alias is "site settings". using this you can use properties on different pages.

  • Simeon Ostberg 123 posts 389 karma points
    Mar 02, 2022 @ 09:20
    Simeon Ostberg
    0

    Hi Harikrishna,

    Thank you for your reply!

    This is not my problem. My problem is, how the SQL statement in the nuPicker SQL query would have to be to get the data from the other document type.

    Best regards, Simeon

  • Simeon Ostberg 123 posts 389 karma points
    Mar 09, 2022 @ 12:14
    Simeon Ostberg
    0

    Does anyone have an idea?

    Best regards, Simeon

Please Sign in or register to post replies

Write your reply to:

Draft