Copied to clipboard

Flag this post as spam?

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


  • Greg Fyans 140 posts 342 karma points
    Aug 20, 2012 @ 17:04
    Greg Fyans
    0

    How would I get the values programmatically?

    Hi,

    First of all, great package, it's exactly what I needed to store data against a member.

    Second, I need to access that data programmatically. So if I load a member and the MultiType property like so:

    var member = uQuery.GetMember(userId);
    var memberSystemGoals = member.GetProperty<_4Ben.DataTypes.MultiType.MultiType>("systemGoals");

    How do I then load the data in the items and access the values or each property?

    Thanks,
    Greg.

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Aug 20, 2012 @ 17:06
    Hendy Racher
    0

    Hi Greg,

    The MultiType stores an XML fragment, so you can do:

    XmlDocument xmlDocument = uQuery.GetMember(123).GetProperty<XmlDocument>("systemGoals");

    HTH,

    Hendy

  • Greg Fyans 140 posts 342 karma points
    Aug 20, 2012 @ 17:42
    Greg Fyans
    0

    It does indeed help. I thought there may have been a GetProperty method or Items property I was missing.

    Cheers,
    Greg. 

Please Sign in or register to post replies

Write your reply to:

Draft