Copied to clipboard

Flag this post as spam?

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


  • James Drever 118 posts 149 karma points
    May 24, 2011 @ 11:30
    James Drever
    0

    importing into custom datatypes based on the checkbox/drop down list controls

    Hi Richard,

    A quick question: is there a way of importing fields into document properties which are custom datatypes based on the checkbox and drop down list controls?  I've tried setting up the checkbox/drop down fields with exact matches for the fields I'm importing, but it just passes over them without populating them - no errors either.

    I could well be missing something - be grateful for your thoughts!

    Thanks,

    James.

  • Richard Soeteman 4036 posts 12863 karma points MVP
    May 24, 2011 @ 14:45
    Richard Soeteman
    0

    Hi James,

    Yes it's possible to do that. You need a FieldAdapter. In this case it simply converts a (comma seperated) string to the xml that this datatype understands. I've already build it for 2.0 for radiolists, can build it for checkboxes also and convert it back to a seperate 1.2 dll that you can use. The interface changed a bit so if you don't mind testing it yourself I can create a seperate dll for you.

    Cheers,

    Richard

  • Richard Soeteman 4036 posts 12863 karma points MVP
    May 24, 2011 @ 15:59
    Richard Soeteman
    1

    Hi James,

    Just implemented the missing Checkbox FieldAdapter in 2.0 and copied over all the functionality into a single dll which can be downloaded here

    Put the binary in your bin folder and CMSIMport will pick it up automatically, for all textvalues that can be found cmsImport will convert it to tyhe underlying Id(which umbraoc understands). In case for the checkbox, CMSImport will convert a comma seperated string of textvalues to a comma seperrated string of Id's

    It's not tested for 1.2 but it shoudl be the same.

    Hope this helps you,

    Richard

  • James Drever 118 posts 149 karma points
    May 24, 2011 @ 16:06
    James Drever
    0

    Fantastic, Richard, thats really helpful.  I'll give that a test and let you know how I get on.  Thanks again for a brilliant response.  James.

  • James Drever 118 posts 149 karma points
    May 24, 2011 @ 16:56
    James Drever
    0

    Richard, tested, and that worked first time.  That is absolutely brilliant - wonderful support, and a really elegant solution.  Thankyou. James.

Please Sign in or register to post replies

Write your reply to:

Draft