Hi everybody,
I'm working on a customization to auto populate some fields when the user press a button on the Count Tag Entry after searching up tags.. It works fine for one row, but if the user chooses more then one tag I want them all to calculate, not just the first one. How can I loop true them all?
Kind regards, Lisa
Private Sub Calculate_Click(ByVal sender As Object, ByVal args As System.EventArgs)
Dim workDataView As EpiDataView = CType(oTrans.EpiDataViews("tagView"),EpiDataView)
If (workDataView.Row >= 0) Then
workDataView.dataView(workDataView.row)("CountedDate") = Datetime.Today
workDataView.dataView(workDataView.row)("TagReturned") = True
workDataView.dataView(workDataView.row)("CountedBy") = "user"
workDataView.dataView(workDataView.row)("CountedQty") = workDataView.dataView(workDataView.row)("FrozenQOH")
End If
End Sub
I'm working on a customization to auto populate some fields when the user press a button on the Count Tag Entry after searching up tags.. It works fine for one row, but if the user chooses more then one tag I want them all to calculate, not just the first one. How can I loop true them all?
Kind regards, Lisa
Private Sub Calculate_Click(ByVal sender As Object, ByVal args As System.EventArgs)
Dim workDataView As EpiDataView = CType(oTrans.EpiDataViews("tagView"),EpiDataView)
If (workDataView.Row >= 0) Then
workDataView.dataView(workDataView.row)("CountedDate") = Datetime.Today
workDataView.dataView(workDataView.row)("TagReturned") = True
workDataView.dataView(workDataView.row)("CountedBy") = "user"
workDataView.dataView(workDataView.row)("CountedQty") = workDataView.dataView(workDataView.row)("FrozenQOH")
End If
End Sub