Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Doron 6 posts 28 karma points
    Feb 02, 2012 @ 13:22
    Doron
    0

    Extending DynamicModel object prior to View being loaded

    Hi,

     

    I am relatively new to Umbraco, but really I feel like a little child in a candy store. I have been studying Umbraco 4 for now, until more documentation about Umbraco 5 emerges.

     

    I have been able to do quite a lot using the API and Razor, however I've come across this issue and have no clean way to solve this.

    I have a document type which represents a stock market security. Some of its data is static and may be inputed to the DB. However some othe data is dynamic and may change on a daily basis. I therefore need to use external webservice to get it.

    I want my DynamicModel object to contain this dynamic model without saving it to the db. I am trying to find a way of extending the Model prior to the CSHTML loading. I know I can call the webservice from within the CSHtml, but I would rather to separate the Data Model from the View representing it.

    I hope I am clear enough, any help would be appreciated.

     

    Doron

  • 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.

Please Sign in or register to post replies