S
Sjaakie Helderhorst
Hi,
I've come a stage that I'm feeling an absolute idiot.
Struggling with this issue for days and can't find a suitable answer.
Have this dataset which 'amount' value can be updated. Need to send all
records with 'amount > 0' to a webservice as a Datatable. (Ignorant as I
might be) I Dim a new DataView (rowfilter 'amount > 0') and copy this into a
new datatable:
dv = New DataView(ds.Tables("Items"), _
"amount > 0", _
"barcode", _
DataViewRowState.CurrentRows)
Dim dt As New DataTable("Result")
dt = dv.Table.Copy
sendDS.Tables.Add(dt)
However, sending this datatable (dt) to a webservice will send the entire
source dataset (= huge)
What am I doing wrong ...
Is there a more suitable way of achieving this!?
Thanks in advance.
I've come a stage that I'm feeling an absolute idiot.
Struggling with this issue for days and can't find a suitable answer.
Have this dataset which 'amount' value can be updated. Need to send all
records with 'amount > 0' to a webservice as a Datatable. (Ignorant as I
might be) I Dim a new DataView (rowfilter 'amount > 0') and copy this into a
new datatable:
dv = New DataView(ds.Tables("Items"), _
"amount > 0", _
"barcode", _
DataViewRowState.CurrentRows)
Dim dt As New DataTable("Result")
dt = dv.Table.Copy
sendDS.Tables.Add(dt)
However, sending this datatable (dt) to a webservice will send the entire
source dataset (= huge)
What am I doing wrong ...
Is there a more suitable way of achieving this!?
Thanks in advance.