sdk - What does the SaveHeader of KBObject do? - Stack Overflow

I'm writing some code in the GeneXus SDK to import XMLs into KBObjects. To avoid circular referenc

I'm writing some code in the GeneXus SDK to import XMLs into KBObjects. To avoid circular references, I'm saving all headers first and then the objects.

What exactly does SaveHeader do? What are the implications of calling SaveHeader without saving the full KBObject?

I'm writing some code in the GeneXus SDK to import XMLs into KBObjects. To avoid circular references, I'm saving all headers first and then the objects.

What exactly does SaveHeader do? What are the implications of calling SaveHeader without saving the full KBObject?

Share asked yesterday EKaferEKafer 31 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

The SaveHeader method performs a partial save of a KBObject, primarily storing its header information and properties, while leaving the full object uncommited. This allows the object to be referenced by other objects during the import process, without fully saving the object itself.

By saving only the header initially, you can avoid circular references and maintain the integrity of the objects being processed. However, it's important to ensure that you address and finalize these saved headers later. Failing to do so may result in orphaned or incomplete objects in your knowledge base.

As an alternative, you might want to consider creating a standard export file (xpz) and utilizing the import APIs. This approach can provide a more streamlined and reliable way of importing objects into your knowledge base, particularly if you're dealing with complex relationships or a large number of objects. The import process using xpz files ensures that objects are saved and linked correctly, potentially avoiding the need to manage headers manually.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1743773645a4504826.html

相关推荐

  • sdk - What does the SaveHeader of KBObject do? - Stack Overflow

    I'm writing some code in the GeneXus SDK to import XMLs into KBObjects. To avoid circular referenc

    7天前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信