Copied to clipboard

Flag this post as spam?

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


  • Kris Janssen 210 posts 569 karma points c-trib
    Mar 10, 2014 @ 00:12
    Kris Janssen
    0

    DynamicRecord.UmbracoPageID always returns 0

    As stated in the title.

    I have a form that I can included on many pages and that allows me to "attach" files to a page.

    I also display "attachments" for that specific page by checking form records, comparing Model.Id to the pageID field of the records.

    I use iteration on DynamicRecordList and try to get DynamicRecord.UmbracoPageID and compare it to Model.Id but always yields 0 whereas it clearly is not when checking the records in the Backend...

    Could this be a bug?

    Cheers,

    Kris

  • Kris Janssen 210 posts 569 karma points c-trib
    Mar 10, 2014 @ 01:28
    Kris Janssen
    0

    I can further confirm that going the non-dynamic way, using RecordStorage, my approach works... Record.UmbracoPageId returns correct values.

    So I think there might be a bug in Dynamic...

  • 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