Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
ButtonsHolder is a set of buttons with commands and handlers, defined in a special XML section. You can describe ButtonsHolder in the View/ListViewUI/ButtonSet section when you use it in a separate page, or in the View/Form/ButtonSets/ButtonSet section when you use it inside an XmlFormBuilder-like view.
The following example shows how to add a button to ShipmentStatus by putting the PurchaseOrder-ObjectView.OrderShipment.xml file into the ~/Apps/%AppName%/Config/View/ folder.
<?xml version="1.0" encoding="utf-8" ?>
<View xmlns="http://schemas.mediachase.com/ecf/view">
<Form>
<ButtonSets>
<ButtonSet placeName="StatusChanger">
<add>
<Button id="NewButton" text="New button text" commandName="btn_NewButtonCommand" width="170" disableMode="true" permissions="order:mng:edit"></Button>
</add>
</ButtonSet>
</ButtonSets>
</Form>
</View>
The following example shows how to remove the Cancel Shipment button in ShipmentStatus, and replace it with a CancelShipmentNew button.
<?xml version="1.0" encoding="utf-8" ?>
<View xmlns="http://schemas.mediachase.com/ecf/view">
<Form>
<ButtonSets>
<ButtonSet placeName="StatusChanger">
<add>
<remove nodeId="CancelShipment" />
<Button id="CancelShipmentNew" text="Cancel shipment Modified" commandName="btn_CancelShipment" width="170" disableMode="true" permissions="order:mng:edit"> </Button>
</add>
</ButtonSet>
</ButtonSets>
</Form>
</View>
The control displays a set of buttons with the following properties.
Last updated: Oct 12, 2015