[deepamehta-devel] changing label config of existing topic type

Jörg Richter jri at deepamehta.de
Tue Jan 17 14:08:18 CET 2017

Hi Robert,

you can directly work on the DB-attached object.
getModel(), casting, and update is not necessary then:



> On 17 Jan 2017, at 11:52, Robert Schuster <robert.schuster.rs01 at gmail.com> 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

-------------- n�chster Teil --------------
Ein Dateianhang mit Bin�rdaten wurde abgetrennt...
Dateiname   : signature.asc
Dateityp    : application/pgp-signature
Dateigr��e  : 496 bytes
Beschreibung: Message signed with OpenPGP using GPGMail
URL         : <http://lists.deepamehta.de/pipermail/devel-lists.deepamehta.de/attachments/20170117/4a9cf741/attachment.sig>

More information about the devel mailing list