EntityManager HTML Editor Layout Object

Objective

There are cases in which developers want to change the disposition of elements inside EntityManager objects generated by K2BEntityServices. For this purpose K2BTools has a default layout that can be modified by the user. Using this object the developer can change how all Entity Manager objects are generated. The developer can also create a copy of the object to change how some objects are generated.

This page shows how to modify the Layout Object used in the generation of Web Forms when the HTML generator is used.

How it works

In EntityManager nodes there is a property named "Layout Object". Its default value is "EntityManagerLayoutModern". You can edit the "EntityManagerLayoutModern" object or create a new web panel and set it as the "Layout Object".

Customizing Layout Objects

In order to customize the layout object, you must know which components K2BTools expects to be in the Web Panel.

Component Type Control Name Usage
DIV K2BSectionPgmDescriptionContainer Will be replaced by the EntityManager's Title.
DIV K2BSectionFirstRowFixedDataContainer Will be replaced by the contents of the first row of the FixedData section (if any).
DIV K2BSectionBottomFixedDataContainer Will be replaced by the contents of the FixedData section (if any), except its first row.
DIV K2BSectionBackToWorkWithContainer Will be replaced with the "Back To WorkWith" action if it is enabled for the EntityManager.
DIV K2BSectionTabbedViewContainer Will be replaced with a Tabs control containing all components defined in the instance.
DIV K2BSectionFormSectionTopContainer Will be replaced by the contents of a FormSection with Layout = "Top", if it is present in the instance.
DIV K2BSectionFormSectionBottomContainer Will be replaced by the contents of a FormSection with Layout = "Bottom", if it is present in the instance.
DIV K2BSectionFormSectionLeftContainer Will be replaced by the contents of a FormSection with Layout = "Left", if it is present in the instance.
DIV K2BSectionFormSectionRightContainer Will be replaced by the contents of a FormSection with Layout = "Right", if it is present in the instance.
DIV K2BSectionHiddenItemsContainer The hidden items generated will be placed here.