Forum Discussion

Sweez's avatar
Sweez
New Contributor III
8 months ago

DataBuffer Limitations?

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.   

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

  • JackLacava's avatar
    JackLacava
    Honored Contributor

    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.

    • Sweez's avatar
      Sweez
      New Contributor III

      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,  

      • JackLacava's avatar
        JackLacava
        Honored Contributor

        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.

  • Krishna's avatar
    Krishna
    Valued Contributor

    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