Instead of using the .object
notation to access the column, use the GetItemxxx()
, eg:
if dw_report.getitemnumber(ll_first_row, "compute_page") <> dw_report.getitemnumber(ll_last_row, "compute_page") then
Just replace the "compute_page"
litteral in the example by a string argument of your function.
Beware that the GetItemxx()
call must match the actual column data type, so you need to check for the result of dw_report.describe(ls_your_column_name+".coltype")
to call one of GetItemNumber()
, GetItemString()
, GetItemDecimal()
, GetItemDate()
, GetItemDatetime()
or your application will crash.