You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Vu Hong Thuan <th...@gmail.com> on 2009/05/21 09:21:30 UTC
How to add a delete button in the form edit
Hi,
I want to create a delete button in the edit form .
<field name="submitButton" use-when="domainType==null"
title="${uiLabelMap.CommonCreate}"><submit button-type="button"/></field>
<field name="submitButton" use-when="domainType!=null"
title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
<field name="submitButtonDelete" use-when="domainType!=null"
title="${uiLabelMap.CommonDelete}">
<submit button-type="button"/>
</field>
But, how to call to a delete service from the edit form. Normally, the edit
form includes 2 options: a call to insert service and a call to update
service.
<form name="EditDomainType" type="single" target="updateDomainType" title=""
default-map-name="domainType">
<alt-target use-when="domainType==null" target="createDomainType"/>
How to insert a third option : call to delete service.