Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Object ExtWriteAction

Description:
An extension of the PmData data item for invoking an event when writing a value.
 
Format of saving the data extension as string:

The contents of complete data extension (all configurators) can be saved as a single string. See Format of saving the data extension as string .

Id={WriteAction;nBeforeWrite;nAfterWrite}

 
If calling the onItemBeforeWrite event is enabled, the event fires for this variable always closely before writing or before the change of the variable value. Unconsidered enabling for all variables can cause unnecessary utilization of the processor. For example when the object includes 1000 variables and each one has calling enabled then by writing new values into all variables of the object can cause calling the onItemBeforeWrite event 1000 times (each time with another pEvent.Item parameter value). It is also better (if it is required to react to writing or the change of the variable) to enable the onItemAfterWrite event instead of onItemBeforeWrite. Enabling onItemBeforeWrite is useful only if, for example, you need to test the written value and in a necessity to change it (to filter it). The pEvent.NewVal parameter is in the onItemBeforeWrite event defined for reading and writing and thus it is possible in the event to enforce another value than the one that is really written.

If calling the onItemBeforeWrite event is enabled, the event fires for this variable always closely before writing or before the change of the variable value. Unconsidered enabling for all variables can cause unnecessary utilization of the processor. For example when the object includes 1000 variables and each one has calling enabled then by writing new values into all variables of the object can cause calling the onItemBeforeWrite event 1000 times (each time with another pEvent.Item parameter value). It is also better (if it is required to react to writing or the change of the variable) to enable the onItemAfterWrite event instead of onItemBeforeWrite. Enabling onItemBeforeWrite is useful only if, for example, you need to test the written value and in a necessity to change it (to filter it). The pEvent.NewVal parameter is in the onItemBeforeWrite event defined for reading and writing and thus it is possible in the event to enforce another value than the one that is really written.

Caution: If calling the onItemBeforeWrite event is enabled, the event fires for this variable always closely before writing or before the change of the variable value. Unconsidered enabling for all variables can cause unnecessary utilization of the processor. For example when the object includes 1000 variables and each one has calling enabled then by writing new values into all variables of the object can cause calling the onItemBeforeWrite event 1000 times (each time with another pEvent.Item parameter value). It is also better (if it is required to react to writing or the change of the variable) to enable the onItemAfterWrite event instead of onItemBeforeWrite. Enabling onItemBeforeWrite is useful only if, for example, you need to test the written value and in a necessity to change it (to filter it). The pEvent.NewVal parameter is in the onItemBeforeWrite event defined for reading and writing and thus it is possible in the event to enforce another value than the one that is really written.

Configuration windows:
ExtWriteAction Data extension configuration
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice