Forum Discussion

BCG's avatar
BCG
New Contributor II
2 years ago

Usage of DataBuffer1, DataBuffer2

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

  • 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.

      • JackLacava's avatar
        JackLacava
        Honored Contributor

        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.