Page 1 of 1
Current Data Row Field Value
Posted: Tue Oct 28, 2025 9:07 pm
by admin@secsol.co.uk
How do I get the current value of a DataRow field bound to a DataBand so I can pass that value to a custom function?
Re: Current Data Row Field Value
Posted: Tue Oct 28, 2025 9:30 pm
by Lech Kulikowski
Hello,
You can use DataSourceName.ColumnName in the expression on the databant to get the current value.
Thank you.
Re: Current Data Row Field Value
Posted: Wed Oct 29, 2025 9:47 am
by admin@secsol.co.uk
Thank you
Re: Current Data Row Field Value
Posted: Wed Oct 29, 2025 11:21 am
by admin@secsol.co.uk
I have a DataBand with a Data table as the source called StockTable.
In the Quantity filed on that data band in the BeforePrint event I call a function called "AdjustQuantity" passing in the current record data (or so I thought) using :
AdjustQuantity(StockTable.Quantity,StockTable.Pin);
But the values passed to the AdjustQuantity function always appear to be for the first record in the DataTable.
Re: Current Data Row Field Value
Posted: Wed Oct 29, 2025 11:34 am
by Lech Kulikowski
Hello,
Do you set the DataSource property for this databand? If no, then it is correct, will always be the first record.
Thank you.