I have two pages, Projects and Resources.
I want to be able to set all Resources related to a Project, from the Project backend page. Resources have a RelatedProject column and i want to update this from the Project backend. I've created a NumRelatedAssets field in sitefinity that relates to a dynamic items field control selector and my intention is to loop through the selections and POST the currently selected ProjectID to each Resource during the get_value portion of the control and set the NumRelated Assets to however many are set.
However, when I create the Number type and go to the backend Project page. I get the "Type: Telerik.Sitefinity.DynamicTypes.Model.Resource.Project cannot be resolved" error. Which is strange, because the dynamic type is supposed to be set to Resource.Resource not Resource.Project. Is there somewhere that I can prevent the .Project from replace .Resource? Thanks, also if there's an easier way I'd appreciate the heads up.
Sure, thanks for checking up Dmitri. I really appreciate it.
So, I have Resources/Assets. I'm going to call them Assets from now on to avoid confusion with any potential Sitefinity terms. These Assets can relate to one or no Project. A Project is just a way to group similar Assets.
So, to group all Assets under a Project, I added a column to the Assets table called RelatedProject. This is a single GUID and holds a Project's OriginalContentId. I'm not really sure why at the moment, I did it that way and not just an array of GUID's on the Project side. I'm pretty sure there was a good reason.
So anyway, now I have to be able to select multiple Assets from the Project's backend. I created a Dynamic items field control selector that lets me multi-select Assets. I then created a NumRelatedAssets column in Project that stores a NUMBER. And when you multi-select Assets, i want to save the amount of them that you selected as well as individually go through each Asset selected and Update their RelatedProject column. However, after creating the NumRelatedAssets field in the Project as the screenshot shows and setting its path, I'm greeted with the other attached image. The type error. I can no longer access the backend page for each Project. And the Type SHOULD be Model.Resource.Resource but for some reason it was changed to Model.Resource.Project
Additionally, there exists no Log folder in AppData/Sitefinity/ or anywhere in this project tbh... odd