Copied to clipboard

Flag this post as spam?

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


  • Nigel Wilson 939 posts 2061 karma points
    Apr 25, 2012 @ 20:11
    Nigel Wilson
    0

    Selecting Media Items Help

    HI there

    I have a folder of images (custom media document type) with a custom property attached.

    I and am trying to get a count of media items that have a specific value in the custom property.

    My code is below but it is not returning a count.

    int currNoEntriesForSection = m.Children.Where(t => t.getProperty("entryNodeID").Value.ToString().Equals(entryID.ToString())).Count();

    I have checked and can confirm that I have a media node assigned under the variable "m". Also entryID variable is returning the correct value.

    Is anyone able to advise the error of my ways with the above ?

    Thanks

    Nigel

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies