Usage of DataBuffer1, DataBuffer2

BCG
New Contributor II

Hi Experts,

When do we exactly use DataBuffer1, DataBuffer2 in rules. while we have databuffer in api.

much appreciate if one example can be provided atleast

1 ACCEPTED SOLUTION

JackLacava
Community Manager
Community Manager

They are available only in an Eval sub. Eval effectively stops execution of the Calculate formula, and hands control to the specified sub; when it happens, the buffer resulting from previous execution steps is exposed in eventArgs.DataBuffer1, to be eventually replaced by what you'll store in eventArgs.DataBufferResult.

Search documentation for Eval, there are examples and Snippets.

View solution in original post

3 REPLIES 3

JackLacava
Community Manager
Community Manager

Are you referring to eventArgs.DataBuffer1 ?

BCG
New Contributor II

yea JackLacva

JackLacava
Community Manager
Community Manager

They are available only in an Eval sub. Eval effectively stops execution of the Calculate formula, and hands control to the specified sub; when it happens, the buffer resulting from previous execution steps is exposed in eventArgs.DataBuffer1, to be eventually replaced by what you'll store in eventArgs.DataBufferResult.

Search documentation for Eval, there are examples and Snippets.

Please sign in! BCG