Use AFSDK to update Default UOM and Config String

Hello Dev Community,

I have what I believe to be a simple request although the solution is elusive to me. Its been a few years since I've done AFSDK development Slight smile

I have two use cases to resolve here:

CASE 1.

I need to revise the "Default UOM" property and the "Config String" Settings on hundreds of Attributes (not derived from a template) as shown in the image below:

I am able to retrieve the list of Attributes that need to be revised and iterate through them but I do not see a method that allows me to update or set these properties.

I have tried many variations like this trying to use SET or Update but I feel my approach is not correct. I am using C#.

foreach (AFAttribute thisAttr in change.AFAttributes)
 {
     //thisAttr.DefaultUOM.Update(UOM.)
 }

 

 


image.png
 

CASE 2

I need to revise the "Default UOM" property on hundreds of Attribute Templates similar to Case 1 but these are AttributeTemplate objects in an AFNamedCollectionList.


image_1.png
 

Thanks for your help!

Eric

 

Parents Reply Children
No Data