Skip to Content
avatar image
Former Member

How to get Mapping from OOM VisualBasic


I want to get a mapping from OOM. I use VBScripts:


'Get DataSource

set ds = ActiveModel.findchildbyname("TEST",PDOOM.cls_datasource)

'Get mapping

set m = ds.GetMapping(c)


When I'm trying to get field's mapping (use method structural.Feature.Class) i catch error "The object don't support this op[tion or method: 'structural.Feature.Class'"


For each structural in m.StructuralFeatureMaps

Output structural.Feature

Output structural.Feature.Class


How i can do it?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jan 20, 2017 at 09:13 PM

    It can be made so:

    output CurrentObject.code 'Mapping to ClassCode

    output structural.Feature.code 'Mapping to FieldCode

    output structural.SourceFeature

    output structural.SourceFeature.code 'Mapping from FieldCode

    But in structural.SourceFeature i recieve long string "Shortcut of attribute 'ClassName.ClassFieldName'"

    I want to keep only classCode Source.

    How i can do it? =)

    And i know it!)


    Add comment
    10|10000 characters needed characters exceeded