ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ankit Jain <ankit.i...@gmail.com>
Subject Re: Checkbox confirmation
Date Thu, 10 May 2012 10:56:26 GMT

Try this code it will work for you what you are expecting.

Add target in the form tag instead of you added Delete field in each row.

<form name="ListBookings" type="multi" target="deleteTicket"
use-row-submit="true" title="Selected Monument"
separate-columns="true"  paginate-target="Book_E_Ticket1"

         <field name="ticketId">
entity-name="TicketBookingDetails" description="${ticketId}"/>
               <field name="check"><check></check>
               <field name="monumentName">
               <field name="date_visit">

               <field name="_rowSubmit" title="${uiLabelMap.CommonSelect}">
                       <hidden value="Y"/>

               <field name="submitButton"


in controller.xml :

                <request-map uri="deleteTicket"><security https="true"
                    <event type="service-multi" invoke="deleteTicket"
                    <response name="success" type="view" value="booketicket"/>
                    <response name="error" type="view" value="booketicket"/>

Don't worry about multiple Id's you don't need to do anything else
your form is of type multi and we are using service-multi in
controller so it will handle by its own.

Ankit Jain

On Thu, May 10, 2012 at 3:07 PM, madhu <madhu.gummalla@lntinfotech.com> wrote:
> with service also we can do but only single record deletion.instead of using
> service i called simple method in controller itself. i can use service and i
> can call simple method for deletion from service.that will work fine for
> single record deletion but how mutiple records based on checkboxes
> click..see the code wat ever i have posted and suggest me for multiple
> deletion.here,main requirements are
> 1.getting recordids of checked.(in my code ticketids i have for each record
> in hidden format. i m using that id for record deletion.but multiple ids how
> to pass at a time)
> 2.how to handle those ids for deletion fo those records at a time.
> the code i have posted working very fine for single record deletion.
> @ankit : hoe to use that type="service-multi" for deletion of checked
> records.ids how we can handle there.
> pls help me out.thanks in advance to every one
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/Checkbox-confirmation-tp2998649p4623004.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.

View raw message