HI,
I am new to this OFBiz. I have some records in a grid. i want to provide
checkbox to all the records.that thing i have done like

        <field name="check"><check></check>
                </field>                                in a form.

now i want to delete  the  corresponding records which ever the user checked
in the checkbox. ihave done to delete single record at a time.but i am not
getting how to delete multiple records at a time using the checked
checkboxes.

code i have written for single delete :

In form :

<form name="ListBookings" type="multi" use-row-submit="true" title="Selected
Monument" separate-columns="true"  paginate-target="Book_E_Ticket1"
                 list-name="TicketDetails">
                <actions>
                        
                         <script
location="component://eticket/webapp/eticket/WEB-INF/actions/TicketBookingView.groovy"/>
 
                </actions>
                
          <field name="ticketId">
                        <display-entity entity-name="TicketBookingDetails"
description="${ticketId}"/>
                        <hidden/>
                </field>
                <field name="check"><check></check>
                </field>
                <field name="monumentName">
                        <display/>
                </field>
                <field name="date_visit">
                        <display/>
                </field>
                
                <field name="_rowSubmit" title="${uiLabelMap.CommonSelect}">
                        <hidden value="Y"/>
                </field>
                
                <field name="deleteLink" title="Delete" 
widget-style="buttontext">
                <hyperlink target="deleteTicket"
description="${uiLabelMap.CommonDelete}" also-hidden="false" 
confirmation-message ="Are You Sure">
                        <parameter param-name="ticketId"/>
                </hyperlink>
        </field>
        
                
        </form>

simple method to delete single record :

 <simple-method method-name="deleteTicket" short-description="Delete
Ticket">
                <entity-one entity-name="TicketBookingDetails"
value-field="lookedUpValue"/>
                <remove-value value-field="lookedUpValue"/>
                <set field="_event_message_" value="Successfully Deleted!!"/>   
  
        </simple-method>

pls do the needful.

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Checkbox-confirmation-tp2998649p4620129.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to