Unofficial Content
  • This documentation is valid for:

You can apply the default form to any part of an object with the following code:

...

KBObject myObject = ...;

List<KBObjectPart> parts = new List<KBObjectPart>() { myObject.Parts[typeof(WinFormPart).GUID], myObject.Parts[typeof(WebFormPart).GUID] };
foreach (TKBObjectPart part in parts){
      if (part.Default.CanCalculateDefault())
       part.Default.SilentSetIsDefault(true);
}
myObject.Save();

...

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant