Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Many interfaces in Commerce Manager contain different lists, toolbars and custom user controls. For customizing these UI types we use the special XmlFormBuilder control. In the XmlFormBuilder XML it is possible to define layouts and predefined properties for controls.
Below are some examples of complex layouts and their components.
The example below shows:
The example below shows:
The example below shows:
The current view is defined in two XMLs: PurchaseOrder-ObjectView.xml section View/Layout, and in PurchaseOrder.[MC_BaseForm].xml section in View/FormDocument.
In the following we will modify tabs in Views for XmlFormBuilder. In all the examples below we need to create a file with the name PurchaseOrder-ObjectView.xml in the ~/%AppName%/Config/View.
Here we will add a new tab with the name "NewBlock" and add a control ~/Apps/TestApp/TestControl.ascx with one pre-defined property.
<?xml version="1.0" encoding="utf-8" ?>
<View xmlns="http://schemas.mediachase.com/ecf/view">
<Form>
<Layout>
<add>
<Block id="test" name="NewBlock">
<Placeholder id="Placeholder_1">
<Control id="testControl" path="~/Apps/TestApp/TestControl.ascx">
<Property name="Property1" value="Value1" />
</Control>
</Placeholder>
<Placeholder id="Placeholder_2">
</Placeholder>
<Placeholder id="Placeholder_3" />
<Placeholder id="Placeholder_4" />
</Block>
</add>
</Layout>
</Form>
</View>
Here we replace the control "/Apps/Order/Modules/ShortInfo.ascx" with the user control from our "/Apps/TestApp/NewShortInfo.ascx" application.
<?xml version="1.0" encoding="utf-8" ?>
<View xmlns="http://schemas.mediachase.com/ecf/view">
<Form>
<Layout>
<Block id="Null" name="">
<Placeholder id="Placeholder_1">
<Control id="GeneralInfoCtrl1" path="~/Apps/Order/Modules/ShortInfo.ascx">
<setAttributes path="~/Apps/TestApp/NewShortInfo.ascx" />
</Control>
</Placeholder>
<Placeholder id="Placeholder_2">
</Placeholder>
<Placeholder id="Placeholder_3" />
<Placeholder id="Placeholder_4" />
</Block>
</Layout>
</Form>
</View>
In this example we will delete the last tab "Notes" from OrderView.
<?xml version="1.0" encoding="utf-8" ?>
<View xmlns="http://schemas.mediachase.com/ecf/view">
<Form>
<Layout>
<remove nodeId="notes"/>
</Layout>
</Form>
</View>
Block can have the following attributes:
Placeholder can have the following attributes:
Control can have the following attributes:
Property can have the following attributes:
LayoutMode describes how to display blocks:
Last updated: May 28, 2015