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!
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.
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.
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.
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
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
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.
Richard, tested, and that worked first time. That is absolutely brilliant - wonderful support, and a really elegant solution. Thankyou. James.
is working on a reply...