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
Hello
im triyng to save prevalues on my costum Propertytype after saving some contentType ...something like this :
dataTypeService = ApplicationContext.Current.Services.DataTypeService; dataType = dataTypeService.GetDataTypeDefinitionById([MY_DATATYPE_DEFINITIONID]); var PreValues = dataTypeService.GetPreValuesCollectionByDataTypeId(dataType.Id).PreValuesAsDictionary; var prevalue = PreValues.Where(c => c.Key == "SampleData").FirstOrDefault(); prevalue.Value.Value = "0"; dataTypeService.Save(dataType);
but i was afraid that this didnt work ... and it didnt :( because when i open settings on my Property the flag is still checked ...
any ideas of how to do that ?
thank you
Angelo
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Saving prevalues after ContentType Saved
Hello
im triyng to save prevalues on my costum Propertytype after saving some contentType ...something like this :
but i was afraid that this didnt work ... and it didnt :( because when i open settings on my Property the flag is still checked ...
any ideas of how to do that ?
thank you
Angelo
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.