The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.
Forum Discussion
BCG
3 years agoNew Contributor II
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
- 3 years ago
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
OneStream Employee
3 years agoAre you referring to eventArgs.DataBuffer1 ?
- BCG3 years agoNew Contributor II
yea JackLacva
- JackLacava3 years ago
OneStream Employee
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.
Related Content
- 3 years ago
- 2 years ago
- 2 years ago