Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Have trouble accessing the updateDate property in a usercontrol - Response.Write(node.getProperty("updateDate").value.toString()); but gets
I can access the other properties of the document. Any ideas?
Guessing it have to do with the way im accessing the tree
umbraco.cms.businesslogic.Content[] nodesoftypeproduct = Document.getContentOfContentType(DocumentType.GetByAlias("product"));
foreach (umbraco.cms.businesslogic.Content node in nodesoftypeproduct)
{
}
Use Document.GetDocumentsOfDocumentType as that'll return a Document collection and a Document object has UpdateDate.
If you're trying to use this on the front end though you should be using the Node APIs so you don't hit the database
You absolutely ROCKS! It works like a charm! You the WIKI of this forum and I appreciate it… Thanks a million!!!
btw. Its for a dashboard usercontrol to email the client when a node is not edited for x periode...
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
how to access updateDate property?
Have trouble accessing the updateDate property in a usercontrol - Response.Write(node.getProperty("updateDate").value.toString()); but gets
Object reference not set to an instance of an object
I can access the other properties of the document. Any ideas?
Guessing it have to do with the way im accessing the tree
umbraco.cms.businesslogic.Content[] nodesoftypeproduct = Document.getContentOfContentType(DocumentType.GetByAlias("product"));
foreach (umbraco.cms.businesslogic.Content node in nodesoftypeproduct)
{
}
Use Document.GetDocumentsOfDocumentType as that'll return a Document collection and a Document object has UpdateDate.
If you're trying to use this on the front end though you should be using the Node APIs so you don't hit the database
You absolutely ROCKS! It works like a charm! You the WIKI of this forum and I appreciate it… Thanks a million!!!
btw. Its for a dashboard usercontrol to email the client when a node is not edited for x periode...
is working on a reply...