Copied to clipboard

Flag this post as spam?

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


  • Marshall Penn 49 posts 208 karma points
    Aug 25, 2017 @ 09:34
    Marshall Penn
    0

    How to access MultiPicker objects from controller

    I have a multipicker on my page, and can successfully select multiple objects - but how can i access the selected data in the controller to add it into my model.

    In the code below Person is my poco which is being multiple selected, with the model having a property of List

    IEnumerable

    This gives nothing. What am i doing wrong?

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    Aug 28, 2017 @ 10:44
    Alex Skrypnyk
    0

    Hi Marshall

    What about the type of object? What type is TeamMembers property?

    Thanks,

    Alex

  • Marshall Penn 49 posts 208 karma points
    Aug 28, 2017 @ 20:57
    Marshall Penn
    0

    TeamMembers property is this:

    [Ignore] [UIOMaticListViewField(Name = "Members", View = UIOMatic.Constants.FieldViews.Label)] [UIOMaticField(Name = "Members", Description = "Team members", View = UIOMatic.Constants.FieldEditors.List, Config = "{'typeAlias': 'people', 'typeName': 'Umbraco5.Models.Pocos.Person, Umbraco5', 'foreignKeyColumn' : 'Id', 'canEdit' : false}")] public IEnumerable

    Thanks, Marshall

  • Marshall Penn 49 posts 208 karma points
    Aug 28, 2017 @ 20:58
    Marshall Penn
    0

    Its also this is the Model:

    public List

    Marshall

  • 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