I'm using the data exchange mechanism to backup some data from one infobase to another (distributed infobases), but I have a problem when I try to manually record changes for one particular information register. For several reasons, I don't need for changes to be automatically recorded for this metadata object, so its "AutoRecord" property is set to "Disable" in the exchange plan's content.
The method I've tried is presented below, but unsuccessfully.
Inside the recordset module of this information register I use the following code:
Procedure OnWrite(Cancel, Replacing) If DataExchange.Load Then Return; EndIf; // Record changes for backup node Node = ExchangePlans.ExchangePlan.FindByCode("BKUP"); If Not Node.IsEmpty() Then ExchangePlans.RecordChanges(Node, ThisObject); EndIf; EndProcedure
No errors are encountered on compiling/running the code, but after making changes in the register and writing database changes to XML file, I can't see any of the occurred changes. I mention that I've tried the same method but for a catalog configuration object, and it worked.
Can someone provide any help in order to solve this problem?