Updating an Array of GUIDs from MVC

Posted by Community Admin on 05-Aug-2018 23:08

Updating an Array of GUIDs from MVC

All Replies

Posted by Community Admin on 17-Mar-2016 00:00

This is the error I receive:
The specified property 'RelatedAsset' does not exist on type 'Telerik.Sitefinity.DynamicTypes.Model.Resource.Resource'.

 

I've created a custom field called RelatedAsset in the Resource module but it's saying the property does not exist?

Posted by Community Admin on 22-Mar-2016 00:00

Hi Jay,

Are you by any chance trying to set the field by directly accessing it from the DynamicContent object like a property?

myDynamicItem.RelatedAsset = someGuidArray;

This will not work for DynamicContent objects. You need to use GetValue() and SetValue() extension methods respectively when you want to work with DynamicContent fields.

You can check the following Documentation article:

http://docs.sitefinity.com/for-developers-set-the-value-of-a-custom-field

Note to add Telerik.Sitefinity.Model namespace to your usings in order to be able to access those methods.

Regards,
Pavel Benov
Telerik
 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

This thread is closed