Updating an Array of GUIDs from MVC - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

Updating an Array of GUIDs from MVC

  • Updating an Array of GUIDs from MVC
  • 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?

  • 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