Skip to Content
0
Former Member
Jan 28, 2011 at 11:17 AM

Updating a single row in udo documentDetails by LineID

56 Views

How do I update a single row of an object "UDO", I must necessarily read all the rows recursively until you find the line with the "LineID" wanted.

There is a faster method?

example, now i must:

MyLineID dim as integer = 2
Dim x As Integer = 0
..
..
Sons = CType (genData.Child (XXX_CHILD1 "), SAPbobsCOM.GeneralDataCollection)

Do

   are sons.Item = (x)
   If son.GetProperty (LineID ") = MyLineID then
     
      son.SetProperty (U_MyField "," test ")
      genService.Update (Agenda)

      Exit Do
   end if

   x + = 1

loop until ......

I would expect to use the following syntax:

son.GetProperty (MyLineID)

Thanks