Copied to clipboard

Flag this post as spam?

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


  • David Holmes 1 post 21 karma points
    Aug 23, 2012 @ 21:19
    David Holmes
    0

    Find descendants where property equals a variable

    I'm getting a value from a url string, converting it to int, then looking for it in the descendants property's but it's not matching anything.

    I've got myproperty set as a numeric field in the doc type.

    How do you check against int variable?

    Model.Descendants(1).Where("myproperty == @myvariable")
  • Pete 213 posts 285 karma points
    Aug 24, 2012 @ 17:15
    Pete
    0
    Model.Descendants(1).Where("myproperty == " + myvariable )
Please Sign in or register to post replies

Write your reply to:

Draft