Written by

Developer at InterSystems
Question Martin Maier · Nov 22, 2016

Copy namespace mappings programmatically

Hi,

is there a way to copy namespace mappings from another namespace to a new namespace programmatically with a command?

When using management portal there is an option to choose an existing namespace to copy the mappings from, I'm basically looking for the equivalent from command line / COS.

Thanks

Martin

Comments

Timothy Huggins · Nov 22, 2016

Take a look in the Config.Namesaces class in the %SYS namespace.

It looks like the CopyMaps method should do the job.

0
Timothy Huggins · Nov 22, 2016

Take a look at the Config.Namespaces class in the %SYS namespace.

It looks like the CopyMaps method should do the job.

0
Eduard Lebedyuk · Nov 22, 2016

If you want to propagate mappings across all namespaces you can create %All namespace and map there. All mappings into %All namespace are visible everywhere (except for samples and docbook) .

0