Copied to clipboard

Flag this post as spam?

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


  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Sep 03, 2010 @ 17:09
    Jeroen Breuer
    0

    Save value of custom datatype

    Hello,

    I want to store a value of a custom datatype I wrote (not using the usercontrol wrapper). The value is always stored like this:

    <test><![CDATA[79]]></test>

    What do I need to do to save it like this?

    <test>79</test>

    I'm building the datatype using the Umbraco 4.5 API.

    Jeroen

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Sep 04, 2010 @ 11:39
    Jeroen Breuer
    1

    Already figured it out. In the PrevalueEditor I had the following:

    this._dataType.DBType = DBTypes.Ntext;

    This should have been (for storing id's):

    this._dataType.DBType = DBTypes.Integer;

    Jeroen

  • 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