04-27-2024 05:06 PM
Can anyone confirm if a GetDataBuffer function only pulls back real data? In other words it will not return dynamically calculated data (say from a dynamic account) or derived data? Trying to understand the limiitation of what data the function will and will not return. Thanks.
Solved! Go to Solution.
04-29-2024 11:06 AM
Yeah, sorry, I had a brain fart. I was thinking of api.Data.GetDataCell, which will resolve dynamic accounts. GDBF will only contain real data, aggregated dynamically to parent accounts(/flows/origin/etc) if requested.
04-29-2024 10:44 AM - edited 04-29-2024 11:07 AM
Well, it depends on where you're actually using it and how, but databuffers can indeed contain data from DynamicCalc accounts. More coffee is needed for my brain to operate today.
04-29-2024 10:53 AM
Thank Jack for the response. The context is use in a finance business rule used by a data managment job. If I create a databuffer (i.e. Dim myDataBuffer As DataBuffer = api.Data.GetDataBufferUsingFormula) my question is will it contain derived data if it exisits in that databuffer, as well as will it pull back data if a dynamic account is used in the filter. In my testing I only seem to be able to bring back real data,
04-29-2024 11:06 AM
Yeah, sorry, I had a brain fart. I was thinking of api.Data.GetDataCell, which will resolve dynamic accounts. GDBF will only contain real data, aggregated dynamically to parent accounts(/flows/origin/etc) if requested.
04-29-2024 11:07 AM
Thanks Jack.
04-29-2024 02:46 PM
Yes @ I agree with Jack. Here is an example
If Not srcDataBuffer Is Nothing Then
For Each srccell As DataBufferCell In srcDataBuffer.DataBufferCells.Values
If srccell.CellAmount <> 0 And srccell.CellStatus.IsRealData Then
End If
Next
End If