Home
Analytics
difference between datasetrow & row
RepBIRT
What is the difference between dataSetRow and Row?
Find more posts tagged with
Comments
Tubal
A dataSetRow refers to a column in your dataset.
A row refers to a column bound to your element.
So say you have a column in your dataset called 'amount'.
You would have a dataSetRow["amount"].
Say you bind this dataSetRow["amount"] to a column in your table and name it 'amount' (this is typically what BIRT does for you automatically if you drag a column from your dataset). If you double click on the binding, the value will be 'dataSetRow["amount"]'. So at this point it's the same value as is returned from your dataset. But say you want to get double the amount. If you edit this binding and change the value to 'dataSetRow["amount"] * 2', now the value in row["amount"] will be double dataSetRow["amount"]. So the values are now different.
Basically, dataSetRow is the data directly from your dataset. row is the data after it's been bound to your table (or grid, or whatever element).
You can add as many bindings (rows) to your element as you want. These can be based on your dataset either as a direct copy of your dataset value, or an aggregate, or just some random javascript value you create.