Copied to clipboard

Flag this post as spam?

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


  • Damien 36 posts 160 karma points
    Feb 01, 2016 @ 15:03
    Damien
    0

    DataTypeService - get source nodes from multinode picker datatype xpath expression

    Hi,

    Im trying to get the source nodes which are generated by the xpath used on a multinode picker, I'm using the DataTypeService which is fine for returning pre-values but I cant see a way to get the nodes which are selelcted using the xpath.

    enter image description here

    Im bascially after the nodes which would be shown on the left side in the CMS when using the MNP, not the selected nodes.

    I can get the pre-values which actually shows portions of the xpath in the array but no decent way to evaluate and get a node list.

    DataTypeService dts = new DataTypeService();
    
                Guid mnpDataTypeId = new Guid("7e062c13-7c41-4ad9-b389-41d88aeef87c"); //the datatypeId of all multinode pickers
    
                foreach (var type in content.PropertyTypes)
                {
                    if (type.DataTypeId == mnpDataTypeId)
                    {
                        var preValues = dts.GetPreValuesCollectionByDataTypeId(type.DataTypeDefinitionId);
                    }  
                }
    

    Many thanks

Please Sign in or register to post replies

Write your reply to:

Draft