I'm attempting to write a poco generation utility for each document type. A requirement that I'm stuck on is that I can't seem to locate where the ParentNodeId and the DocumentAliasFilter are stored for a custom ultimate picker. If a particular ultimate picker exists on a document, I'd like it to be strongly typed in the poco object itself IE I have a picker that allows a doc type of Page1 and Page2. In the poco object I'd like to have
public Page1 {get; set;}
public Page2 {get; set;}
VS
public contententId {get; set;}
Any help would be appreciated, although I realize this a relatively non-conventional question.
Okay this was easier than I had thought so I will answer my own questions. I was looking through the object itself in a visual studio watch with no luck. I turned on a SQL Serveer tracing session found that its stored as a prevalue. Getting prevalues is answered in many places, but for anyone else that may be looking at this post with a similar question.
Access the ultimate picker's Parent NodeId and Document Alias Filter using DataTypeService
I'm attempting to write a poco generation utility for each document type. A requirement that I'm stuck on is that I can't seem to locate where the ParentNodeId and the DocumentAliasFilter are stored for a custom ultimate picker. If a particular ultimate picker exists on a document, I'd like it to be strongly typed in the poco object itself IE I have a picker that allows a doc type of Page1 and Page2. In the poco object I'd like to have
public Page1 {get; set;}
public Page2 {get; set;}
VS
public contententId {get; set;}
Any help would be appreciated, although I realize this a relatively non-conventional question.
Okay this was easier than I had thought so I will answer my own questions. I was looking through the object itself in a visual studio watch with no luck. I turned on a SQL Serveer tracing session found that its stored as a prevalue. Getting prevalues is answered in many places, but for anyone else that may be looking at this post with a similar question.
http://our.umbraco.org/documentation/master/Reference/Management-v6/Services/DataTypeService
GetPrevalueByDataTypeId(datatypeId)
returns a comma seperated list with the ParentNodeId first and the document aliases following.
is working on a reply...