Solved

Where to find the java script command of the delete splistitem button ribbon ?

Posted on 2012-03-22
3
612 Views
Last Modified: 2012-03-23
HI ,


I want to Customize the Java script command  of the Delete SPList Item  button in the Ribbon ,  
where can i get this command ? I searched  in Init.js and Core.js for the following id:

Ribbon.ListForm.Edit.Actions.DeleteItem"

Open in new window

, but i didint found it ,

Thanks
0
Comment
Question by:pgirardier
3 Comments
 
LVL 10

Expert Comment

by:ImaCircularSaw
Comment Utility
What customisation do you want to carry out?  The actions carried out by that button as in the back-end code of SharePoint.  There will be an on-click event on the .aspx page that will call a method from the .cs page.

If you can explain what you're trying to achieve then I might be able to guide you towards the best practice route.
0
 

Author Comment

by:pgirardier
Comment Utility
Thanks for your help ,

just i want after i deleted an item i dont want to be redirected to the Custom Liste i want to be redirected to another URL, or to close the EditForm Page.

Thanks
0
 
LVL 15

Accepted Solution

by:
colly92002 earned 500 total points
Comment Utility
It is in core.js, but it is not straightforward. Raw function is:
HandleItemDelete(...)
However you would have to trace back through the menu/ribbon code to work out hoe to call it.
This might help (but probably not that much....):
http://www.designscripting.com/2011/03/add-update-delete-sharepoint-list-item-in-flash-cs5-and-flex4/


Since this is more complicated than I thought, you might want to use this technque (custom ECMA code using SP object model):
http://nikcharlebois.sharepointspace.com/Blog/Lists/Posts/Post.aspx?List=12dd66b5-8904-4234-bb9c-28760c5460ca&ID=21&Web=3ace3513-f713-47a3-ad5a-7d0ab95015a5
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I have just recently built a new SharePoint 2007 farm on a complete Windows 2008 R2 server platform and part of my standard build procedure is to implement a warm up routine, usually in the form of a script that is scheduled every morning to launch …
There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now