 |
pigpig2 Newbie
Joined: 15 Aug 2009 Posts: 6 Location: Hong Kong
|
Posted: Mon Aug 24, 2009 3:51 am
Import & Copy Alias/Triggers create duplicate entries |
I try to do a transfer of alias/triggers..etc to another package using export XML or "Copy To...". If I import/copy twice or more, it seems create duplicated entries instead of overwrite the old settings.
Please advise if there is some way to have a "replace" operation instead of duplicate entries
Thanks.  |
|
|
 |
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Mon Aug 24, 2009 8:03 pm |
No, I believe there is not.
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Aug 25, 2009 4:05 pm |
The "Copy To" operation always does what it says "makes a *copy*". With the XML Import, it will overwrite settings with the same ID value as in the XML. If you remove the ID=xxx attributes from the XML, then CMUD will compare the name of the setting and the name of it's class (or window) parent to determine if it matches an existing setting and should overwrite instead of copy.
In other words, if you Export XML, then Import the XML into the same package, then it will overwrite the existing settings with the changes in the XML. But if you Import into a different window or package, then it will make a copy.
In general, CMUD tries *not* to overwrite settings because there is too big of a chance for losing a lot of scripts if it does that unexpectedly. |
|
|
 |
pigpig2 Newbie
Joined: 15 Aug 2009 Posts: 6 Location: Hong Kong
|
Posted: Thu Aug 27, 2009 11:16 am |
Thanks for the quick explanation and now clear about the operations.
 |
|
|
 |
|
|