On Thu, May 10, 2012 at 4:26 PM, Ankit Jain <ankit.i...@gmail.com> wrote:
> Madhu, > > 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" > 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> > Madhu, Can you tell which parameter you are passing as hidden , as i can see your form is not well formatted and it should give you some error. if you have to pass ticket id as hidden then do not use display entity , you are combining both together. Ravindra Mandre Bangalore > <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="submitButton" > widget-style="smallSubmit"><submit/></field> > > > </form> > > in controller.xml : > > <request-map uri="deleteTicket"><security https="true" > auth="false"/> > <event type="service-multi" invoke="deleteTicket" > path="component://eticket/script/org/ofbiz/eticket/EbookingServices.xml"/> > <response name="success" type="view" > value="booketicket"/> > <response name="error" type="view" value="booketicket"/> > </request-map> > > > 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. > > > Regards, > Ankit Jain > > > > On Thu, May 10, 2012 at 3:07 PM, madhu <madhu.gumma...@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. >