Skip to Content

How to get Mapping from OOM VisualBasic

Jan 20, 2017 at 06:11 PM


avatar image
Former Member


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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

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!)


10 |10000 characters needed characters left characters exceeded