Hi Robert, you can directly work on the DB-attached object. getModel(), casting, and update is not necessary then:
dm4.getTopicType(...).setLabelConfig(aListOfStrings)
Cheers,
Jörg
> On 17 Jan 2017, at 11:52, Robert Schuster <[email protected]>
> wrote:
>
> Hi guys,
> happy new year! Long time no see! :)
>
> I'm trying to achieve the following right now and am a bit stuck:
>
> I have an existing topic type and I want to change its label config as
> it was found out, that the implicit label config wasn't practical. So
> what I thought how it should be done was this:
>
> in a class that extends Migration:
> - get the topic type (dm4.getTopicType("mymodel"); )
> - get its model, cast this to TopicTypeModel
> - call setLabelConfig with the new values
> - do dm4.updateTopicType() with the above model
>
> However with that approach DM fails with a NoSuchMethodError. Apparently
> it does not find a setLabelConfig method.
>
> I am using DM 4.8.4 for compilation and at runtime.
>
> Any ideas?
>
> All the best,
> Robert
signature.asc
Description: Message signed with OpenPGP using GPGMail
-- devel mailing list [email protected] http://lists.deepamehta.de/mailman/listinfo/devel-lists.deepamehta.de
