Table of Contents

KVSKBALayoutOptimizerFacade

Procedures

Init() :

Summary: Initializes the layout optimizer.

procedure Init(): 

Remarks: This method must be called before any other methods of the optimizer are used.

IsEnabled() : Boolean

Summary: Returns true if the layout optimizer is enabled.

procedure IsEnabled(): Boolean

Returns: True, if the layout optimizer is enabled

Remarks: This method must be called before any other methods of the optimizer are used.

LoggingEnabled() : Boolean

Summary: Returns true if the layout optimizer is enabled and logging is enabled.

procedure LoggingEnabled(): Boolean

Returns: True, if the layout optimizer is enabled and logging is enabled

OptimizeLayoutBlob(Integer, Codeunit Temp Blob, OutStream, Text) : Boolean

procedure OptimizeLayoutBlob(ObjectId: Integer; var LayoutTempBlob: Codeunit "Temp Blob"; var TargetOutStream: OutStream; CommentText: Text): Boolean

Events

OnBeforeOptimizeLayoutFromBlobToStream(Integer, Record KVSKBALayoutOptimizerAction, Codeunit Temp Blob, OutStream, Boolean) :

[IntegrationEvent(false, false)]
local procedure OnBeforeOptimizeLayoutFromBlobToStream(ObjectId: Integer; var TempLayoutOptimizerAction: Record "KVSKBALayoutOptimizerAction" temporary; var LayoutTempBlob: Codeunit "Temp Blob"; var TargetOutStream: OutStream; var Optimized: Boolean): 

OnPerformCustomAction(Record KVSKBALayoutOptimizerAction, Text, XmlDocument, XmlNamespaceManager, Text, Boolean, Boolean, Text) :

Summary: Event that is triggered after internal actions are performed to provide custom actions.

[IntegrationEvent(false, false)]
local procedure OnPerformCustomAction(var TempLayoutOptimizerAction: Record "KVSKBALayoutOptimizerAction" temporary; var ActionInfo: Text; var XmlDoc: XmlDocument; var XmlNsManager: XmlNamespaceManager; var NsUri: Text; var ActionHandled: Boolean; var ActionSuccess: Boolean; var ActionMsg: Text): 

Parameters:

  • TempLayoutOptimizerAction: Temporary record containing the layout optimizer actions.
  • ActionInfo: Text containing information about the action being performed.
  • XmlDoc: The XML document representing the layout.
  • XmlNsManager: The XML namespace manager.
  • NsUri: The namespace URI.
  • ActionHandled: Boolean indicating whether the custom action has been handled.
  • ActionSuccess: Boolean indicating whether the custom action was successfully processed.
  • ActionMsg: Text containing an additional action message on failure.