More in this section
Forums / Module Builder / Updating an Array of GUIDs from MVC

Updating an Array of GUIDs from MVC

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Jay
    Jay  avatar
    2 posts
    03 Mar 2016
    17 Mar 2016
    Link to this post

    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?

  2. Pavel Benov
    Pavel Benov avatar
    21 posts
    06 Jun 2017
    22 Mar 2016
    Link to this post
    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:

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

    Pavel Benov
    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
2 posts, 0 answered