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
I'm trying to add a list of nodes programmatically and I'm having trouble setting a property that is selected via a dropdown in the cms.
At the moment I have:
Document d = Document.MakeNew(rawApartment.AptNo.ToString(), DocumentType.GetByAlias("Apartment"), User.GetCurrent(), GetParentNodeId(rawApartment.Building));d.getProperty("status").Value = rawApartment.Status; d.Publish(author);umbraco.library.UpdateDocumentCache(d.Id);
Where 'rawApartment.Status' is a string that matches the string in the dropdown text however when I check the nodes in the back-end, the dropdown value I entered isn't selected.
I checked the umbraco.config and it's storing the string value so it's not a case of me having to set the prevalue id.
How do I do this?
Did you get to any solution? I'm having the same problem.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted