How to add a delete button in the form edit

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to add a delete button in the form edit

Vu Hong Thuan
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.
Reply | Threaded
Open this post in threaded view
|

Re: How to add a delete button in the form edit

BJ Freeman
if you look at widgets that form this page
https://localhost:8443/partymgr/control/FindCommunicationEvents

Vu Hong Thuan sent the following on 5/21/2009 12:21 AM:

> 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.
>

--
BJ Freeman
http://www.businessesnetwork.com/automation
http://bjfreeman.elance.com
http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
Systems Integrator.