HI,
i want to delete multiple records at a time using check boxes check by user.i have done for single record delete at a at time. code for single record 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> in controller.xml : <request-map uri="deleteTicket"><security https="true" auth="false"/> <event type="simple" 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> 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> now hot to use this type="service-multi" option to delete multiple records at a time.i want to check wat are all the records are checked and then i have to delete all at a time using single button click 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 ________________________________ The contents of this e-mail and any attachment(s) may contain confidential or privileged information for the intended recipient(s). Unintended recipients are prohibited from taking action on the basis of information in this e-mail and using or disseminating the information, and must notify the sender and delete it from their system. L&T Infotech will not accept responsibility or liability for the accuracy or completeness of, or the presence of any virus or disabling code in this e-mail" ************************************************************************* This email and attachments have been scanned for potential proprietary or sensitive information leakage. Websense Data Security, Protecting Your Information from the Inside Out. www.websense.com ************************************************************************* |
Hi Madhu,
Trace the code for https://demo-trunk.ofbiz.apache.org:8443/partymgr/control/listUnknownPartyComms this page. HTH Thanks and Regards Amit Sharma On Thu, May 10, 2012 at 3:27 PM, Madhu Gummalla < [hidden email]> wrote: > HI, > > i want to delete multiple records at a time using check boxes check by > user.i have done for single record delete at a at time. > code for single record 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> > > in controller.xml : > > <request-map uri="deleteTicket"><security https="true" auth="false"/> > <event type="simple" 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> > > > > 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> > > now hot to use this type="service-multi" option to delete multiple records > at a time.i want to check wat are all the records are checked and then i > have to delete all at a time using single button click > > > 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 > > ________________________________ > The contents of this e-mail and any attachment(s) may contain confidential > or privileged information for the intended recipient(s). Unintended > recipients are prohibited from taking action on the basis of information in > this e-mail and using or disseminating the information, and must notify the > sender and delete it from their system. L&T Infotech will not accept > responsibility or liability for the accuracy or completeness of, or the > presence of any virus or disabling code in this e-mail" > ************************************************************************* > > This email and attachments have been scanned for > > potential proprietary or sensitive information leakage. > > Websense Data Security, Protecting Your Information from the Inside Out. > > www.websense.com > > ************************************************************************* > |
thanx Amit.
that is what exactly my requirement.but i am unable to trace the code for that.i am not getting how to get the code. for that grid(Communications from Unknown origin).could you please help me out. i am fresher and new to this ofbiz. |
Please refer this
https://cwiki.apache.org/OFBIZ/ofbiz-tutorial-a-beginners-development-guide.html for better understanding the code snippet given by Ankit in other thread. -- Thanks and Regards Amit Sharma On Thu, May 10, 2012 at 4:43 PM, madhu <[hidden email]>wrote: > thanx Amit. > that is what exactly my requirement.but i am unable to trace the code for > that.i am not getting how to get the code. for that grid(Communications > from > Unknown origin).could you please help me out. > > i am fresher and new to this ofbiz. > > > > -- > View this message in context: > http://ofbiz.135035.n4.nabble.com/deletion-of-multiple-records-at-a-time-tp4623092p4623159.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > |
Please refer the links/references from where I can get step by step implementation of URL rewriting in Ofbiz. Thanks, Krishan Babbar ---------------------------------------------------------------------------------------------------------------------------- Disclaimer: This email and any files transmitted with it may contain privileged or confidential information. It is solely for use by the individual for whom it is intended even if addressed incorrectly. If you received this email in error please notify the sender, do not disclose, copy, distribute or take any action in reliance on the contents of this information; and delete it from your system. Any other use of this email is prohibited. Thank you for your compliance. |
hi Amit,
its really a nice link to know about ofbiz developement.i went throgh the total article.i have done like that only for developing my component previously.but i did not get the idea for my requirement which is there in this link https://demo-trunk.ofbiz.apache.org:8443/partymgr/control/listUnknownPartyComms i did not find any hint for checkbox handling for deletion of checked records. i followed ankit suggestion. it is deleting all the records.it is a progresss but i want only the checked records to be deleted. if u post the source code for the above link ,it will be useful to me to meet my requirement. |
Administrator
|
In reply to this post by krishan.babbar
You can use a front end like Apache HTTPD+ mod_rewrite, or use Tuckey internally (servlet)
http://markmail.org/message/4rxacezchlfgsfyg Jacques From: <[hidden email]> > Please refer the links/references from where I can get step by step > implementation of URL rewriting in Ofbiz. > > > Thanks, > Krishan Babbar > ---------------------------------------------------------------------------------------------------------------------------- > Disclaimer: This email and any files transmitted with it may contain > privileged or confidential information. It is solely for use by the > individual for whom it is intended even if addressed incorrectly. If you > received this email in error please notify the sender, do not disclose, > copy, distribute or take any action in reliance on the contents of this > information; and delete it from your system. Any other use of this email is > prohibited. Thank you for your compliance. > |
In reply to this post by krishan.babbar
Have you been able to do it ? :)
On Thu, May 10, 2012 at 7:16 PM, <[hidden email]> wrote: > > Please refer the links/references from where I can get step by step > implementation of URL rewriting in Ofbiz. > > > Thanks, > Krishan Babbar > ------------------------------**------------------------------** > ------------------------------**------------------------------**---- > Disclaimer: This email and any files transmitted with it may contain > privileged or confidential information. It is solely for use by the > individual for whom it is intended even if addressed incorrectly. If you > received this email in error please notify the sender, do not disclose, > copy, distribute or take any action in reliance on the contents of this > information; and delete it from your system. Any other use of this email is > prohibited. Thank you for your compliance. > > -- > > |
Free forum by Nabble | Edit this page |