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 4908 posts 12265 karma points MVP 5x 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 4908 posts 12265 karma points MVP 5x 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

Please Sign in or register to post replies

Write your reply to:

Draft