ExchangePlanObject.<Exchange plan name>.OnReceiveDataFromMaster

Syntax:

OnReceiveDataFromMaster(<DataItem>, <ItemReceive>, <SendBack>)

Parameters:

<DataItem>

When an event handler is called, this parameter contains the data item that was read from the data exchange message. Data items can be ConstantValueManager. objects, database objects, register record sets, sequences or recalculations.

<ItemReceive>

Type: DataItemReceive.
The value of this parameter can be assigned in the handler. You can It defines whether or not the data item that has been read will be written in the database .
When the event handler is called, the parameter is set to Auto, which is equivalent to the Accept setting for this event.
Accept value means that the data item read should be accepted, that is, written to the database, and if data item changes have been registered for the sending node, that registration is cancelled.
Ignore means that the data item read should be ignored, that is, it is not written to the database, and the change registration remains intact.
Default value: Auto.

<SendBack>

Type: Boolean.
When a handler is called, this parameter has a value of False, meaning that no action will be undertaken. If a handler changes the parameter to a value of True, it means that the state of the data item in this node of the distributed infobase must be transferred to the sending node of the processed message. Thus, if data item changes for the sending node have been registered already, no actions are performed, whereas, if they have not been registered, the changes will be registered.
Default value: False.

Description:

Data and configuration changes in the distributed infobase are exchanged using data exchange messages. There is a kind of message that is used to transfer changes from a master node to a slave and visa versa. This event handler is called after reading a data item from a message that has been received from the master node and before the item is written to the database. A handler is called for each data item that is read from the message.

    

1C:Enterprise Developer's Community