Skip to Content
0
Former Member
Oct 21, 2005 at 12:44 PM

Update ValidValues in UserFieldsMD ?

83 Views

Hi

I want to update a User Defined Field in SAP B1 2004; and now I did not find a way to clear the ValidValues collection of a UserFieldsMD object respectively remove a ValidValue (so that i could do a update of this collection)

All I can do is adding new ValidValues

field.ValidValues.Value = val.Value;

field.ValidValues.Description = val.Description;

field.ValidValues.Add();

Also, its not possible to create a new ValidValues object and assign it to the field (readonly property).

Anyone know a way to clear the ValidValues Collection?