api.Data.SetDataBuffer in increment mode
Hi all,
we have a databuffer with values to be cumulated in a specifi destination intersection.
The issue we have is that api.Data.SetDataBuffer always wirte the last value.
Is there a standard parameter (or workaround) we can use?
At the moment the only valid solution we have found is to read the current value with a specific "api.Data.GetDataCell" and then sum to the databuffer amount.
But I am sure there must be a smarter solution.
Thanks,
Marcello
Hi Giacomo,
we had a call with a Onestream consultant
The final outcome is that we agreed that the best way to handle cumulation is to use the "evergreen" api.Data.GetDataCell and "api.Data.Calculate" (while looping records in the databuffer).
This give us 2 advantages:
- we can instruct the calculation with element names rather than the IDs
- we can debug the calculation line by line
Thanks a lot for the help.
Marcello