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.
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);
}
}
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.
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.
Many thanks
is working on a reply...