I have a number of diffent user-attributes that I whant to reset the values on. is it possible to use one method that can reset the values on diffent types of MUs to the default values of respective Class? I have
to get two diffrent sets of tables containing the name of attributes.then I remove all standard attributs from the table that contains all attributs and left is a list (string) of the User defined attributes.
Is it possible with a method or is it easier and better just delete the instans and create a new?
Solved! Go to Solution.
I would recomend you to have look at the methods 'getAttrValue','getAttrNo','getAttrName','setAttrV
var obj: object:=@.class
for var i:=1 to obj.numAttr loop
--if you only want to use the original class to reset values
--if you want to use a different object to overwrite the values, you have to be sure the attribute exists for both objects
if attrNo/=0 then
I hope this is what you were lookin for.