question-circle Usage of getOwnedProfile() on a ModuleComponent instance

1 week 2 days ago #5438 by craae
I'm having an issue, how do I use the getOwnedProfile() method correctly?

I'm fetching the ModuleComponent in my script by using this code snippet:
mc = Modelio.getInstance().getModelingSession().findByAtt(ModuleComponent, "Name", "BaseLines' GDPR udvidelse")
but I cannot get the OwnedProfile afterwards by using the getOwnedProfile() method - error message:
AttributeError: 'java.util.ArrayList' object has no attribute 'getOwnedProfile' in <script> at line number 33
Traceback (most recent call last):
  File "<script>", line 33, in <module>
AttributeError: 'java.util.ArrayList' object has no attribute 'getOwnedProfile'

This is apparently not the correct way to get to the PropertyTableDefinition, even though it should be according to the Semantic model viewer?

Please Log in or Create an account to join the conversation.

Moderators: chmcma
Time to create page: 0.030 seconds
^ Back to Top