Do you wan to do something specific with the last row or do you just want a callback after all rows?
If it's the later, you can subclass SQL inbound adapter:
Class Project.Ens.Adapter.SQLInbound Extends EnsLib.SQL.InboundAdapter {
Method OnTask() As %Status
{
Set sc = ##super()
// all rows were just processed
// add your logic here
Quit sc
}
}Other approach is to UNION a dummy row to the end of your query, or add COUNT() property.
- Log in to post comments