Disable delete option for a list? But where ?

hi all,
via Console Application I can hide/disbale the Delete This List option:
static void Main(string[] args)
SPSite site = new SPSite("http://localhost");
SPWeb web = site.OpenWeb();
SPList list = web.Lists["DemoList"];
list.AllowDeletion = false;
list.Update();
My question is, if I want do this in Empty SharePoint Project what I must to do ?
if any one has a suggestion or ides please tell me.
thanks in advance
Ahmad
SP 2013 & SPD 2013 & VS 2013 & MSSQL 2012

thanks for your answer Mr. Atkinson, that was excatly what I need. This is my code inside the event receiver:
public override void ListAdded(SPListEventProperties properties)
SPList list = properties.List;
list.AllowDeletion = false;
list.Update();
but the above code dont have any effect on the list, I have still the Item with DELETE THIS LIST in the listsettings.
do you know maybe why? or can I also debugg it?
thanks in advance
BR
Ahmad
SP 2013 & SPD 2013 & VS 2013 & MSSQL 2012

Similar Messages

  • MCKH - Disable delete option for particular version

    Dear SD Gurus,
    Our client uses MCKH to view sales information.
    In this, SD user has created a version F601V under the standard version S601, to view "Part Sales" information.
    Now he wants to disable the delete option for this particular version F601V.
    The idea is that any other user should not delete this version by mistake.
    There is a particular variant attached to this version & we tried to achieve this by checking the protect variant option.
    However, system still allows deletion.
    How this can be achieved?
    Regards
    Prabhu

    thanks for your answer Mr. Atkinson, that was excatly what I need. This is my code inside the event receiver:
    public override void ListAdded(SPListEventProperties properties)
    SPList list = properties.List;
    list.AllowDeletion = false;
    list.Update();
    but the above code dont have any effect on the list, I have still the Item with DELETE THIS LIST in the listsettings.
    do you know maybe why? or can I also debugg it?
    thanks in advance
    BR
    Ahmad
    SP 2013 & SPD 2013 & VS 2013 & MSSQL 2012

  • I dont want my purchased music from iTunes shown in my music app. But I cant get rid. I delete only for it to stay where it is.

    I dont want my purchased music from iTunes shown in my music app. But I cant get rid. I delete only for it to stay where it is. Any tips? Or is this a glitch from IOS7?

    go to settings/music/show all music-off.  I had this same issue

  • When i connect i5 to itunes .. i dont get "delete" option for songs upon right click .. can anyone help me with this plz?

    when i connect i5 to itunes .. i dont get "delete" option for songs upon right click .. can anyone help me with this plz?

    Yes, annoying. A couple of options:
    While it's playing the current A song, click on the H song to select it (but not double click to play it), when iTunes jumps to the second A song, press the down key and iTunes will remember that you had that H song selected and will move the selection to the second H song while the second A song is still playing. So, still jumps around, but easy to get back to where you were.
    Create a new playlist for your music, right click on it, select "New Window" and you can browse your music in a second list while the first window continues to play music. But if you then start playing music in that second window, you have to go back to the first window if you want to start browsing again. Not great if you're navigating around to play the next song.
    Play music from iTunes DJ, then as you're browsing around your library, you can add things to play next in DJ, and go back. You can combine this with previous suggestion, to keep DJ open in one window while you browser in the other window.
    None of these are great, but maybe one of these works better than your current workflow.

  • I'm trying to make a time sheet and include a grid, but I'm having a hard time figuring out how to print a full grid on my spreadsheet.  There are options for shaded grids but I want a defined grid, and I have spent the last 2 hours looking for the answer

    I'm trying to make a time sheet and include a grid, but I'm having a hard time figuring out how to print a full grid on my spreadsheet.  There are options for shaded grids but I want a defined grid, and I have spent the last 2 hours looking for the answer.  Any ideas?

    Hi Cynthia,
    Are you planning to have this table do any of the calculation, or is is to be used as the electronic equivalent of a sheet of paper with a grid printed on it—a place to record the data.
    For your seven column table:
    Are you using one or more rows at the top of the table to label the data below? If so, you might want this row (or these rows) to be set as Header Rows.
    Are you using the leftmost column to label the rows? If so, you may want this column to be a Header column.
    The default table supplied on the "Blank" templates contains one header row and one header column. If you need more (or fewer) Header rows or columns, select the table, then go Table (menu) > Header Rows > (choose the number you need). Repeat to set the number of Header Columns.
    To make a seven column table from the table supplied by default, click on any cell in column H (The eighth column), and drag right to add more cells to the selection, until you get to the last column of the table. With these cells selected, Go Table > Delete Columns.
    To make the remaining seven columns fit across a single page:
    Go View > Show Print View to show the table as it would appear when printed to paper.
    Select the table by clicking its icon in the Sheets List to the left (easy method), OR by carefully clicking on the outside boundary of the table itself (fiddley method).
    With the table selected, you will see square white handles at each corner and at the middle of each side (including the top and bottom).
    With the mouse, grab the handle in the middle of the right side of the table and drag right (or left) until the table just fits onto the width of the defined page.
    With the table still selected, set the thickness and colour of the cell boundaries using the Gaphics Inspector (as described by Jerry), or using the Stroke, Thickness and Color Well controls in the Format bar above the working portion of the Window.
    Regards,
    Barry

  • LB02 screen- Disable delete option of TR

    Hi Friends,
    It is observed that some TRs are disappeared from the system & as such no log present in any database table (LTAK , LTBK , LTBP , LTBK).
      Manual deletion is possible using LB02 .
    I have a requirement to disable Deletion option which is available at Header level ( Delete icon)& Item level ( deletion flag checkbox).
    What is the way to do this?
    Regards,
    Sap.

    Hi All,
    I have tried implementing the BADI WM_ENHANCMENT which was called during TR deleteion, but unfortunately this BADI is for internal SAP use only.
    I could not find any relevant user exit also for this purpose.
    So is there no way by coding that we can achieve the requirement?
    Will authorization be done in any customizing. Kindly help.

  • Disabling Delete Option in Context Menu

    Hi Experts,
    I have created a  KM Navigational iView for a BO Repositry Folder and  used 'BOBJELayout'  Layout set for it.
    Now in comtext menu i am getting all options like view , history , scheduling , Delete etc.
    For administrator it is ok , but  for end user, i want to remove or disable particular options like 'Delete'.
    How to do it ?
    Please help.............
    Regards,
    Ajay Singh

    Hi all,
    Thanks for your support
    problem is solved to some extent .In my scenario working with BO repository , i was unable to to control the context menu
    ( though i didn't try RS suggestion yet) from KM  but it can be controlled from BO itself.
    In context menu Delete option is getting displayed but its not working if user doesn't has sufficient authorization at BO side . So user will not be able to delete any report from his/her login which was the main concern. But How to hide or remove 'Delete'  option
    from Context menu is still a question.
    I am keeping this thread open so that i can revert back with some solution for it or for your's solution.
    Thanks & regards
    Ajay
    Edited by: Ajay Singh on Aug 21, 2009 3:48 PM

  • I lost my iPhone and I was hoping that my photos were being saved to iCloud, but I can't find them anywhere. I read that iCloud saves them for thirty days, but where?

    I lost my iPhone and I was hoping that my photos were being saved to iCloud, but I can't find them anywhere. I read that iCloud saves them for thirty days, but where?

    You are referring to Photo Stream. Photo Stream syncs the photos taken with your device to all of your device.
    It's not a photo storage service, so photos are deleted 30 days after being added to Photo Stream. You can't access to your Photo Stream photos from http://www.icloud.com, but only from an iPhone, iPad or iPod touch (using the Photos app), Mac (using iPhoto '11 or Aperture 3 with OS X Lion or Mountain Lion) or PC (with iCloud Control Panel).
    In all of these devices, you have the option of copying them to the device, so they will be kept after 30 days

  • I do not have a delete option for files or folders in Adobe Creative Cloud

    I do not have a delete option for files or folders in Adobe Creative Cloud
    im looking and looking....
    im stumped.....
    4 weeks now....
    kai

    HOW TO DELETE FILES or FOLDERS or Assets from Adobe Creative Cloud Brouser/Web Portal By: Kai Buskirk rev:130626
    Adobe now burried deleting or trashing unwanted iteams files or folders in the Archive section of your creative cloud brouser/web portal.
    Note!! - No longeer is there a standard TrashCan icon or simple Delete button... its burried in the archive sector: but why i ask?
    An archive is an accumulation of historical records, or the physical place they are located.[1] Archives contain primary source documents that have accumulated over the course of an individual or organization's lifetime, and are kept to show the function of that person or organization. Professional archivists and historians generally understand archives to be records that have been naturally and necessarily generated as a product of regular legal, commercial, administrative or social activities.
    In general, archives consist of records that have been selected for permanent or long-term preservation on grounds of their enduring cultural, historical, or evidentiary value. Archival records are normally unpublished and almost always unique, unlike books or magazines for which many identical copies exist. This means that archives (the places) are quite distinct from libraries with regard to their functions and organization, although archival collections can often be found within library buildings
    A person who works in archives is called an archivist. The study and practice of organizing, preserving, and providing access to information and materials in archives is called archival science. The physical place of storage is sometimes referred to as an archive repository.
    To delete files folders or individual assests in the current incarnation of adobe creative cloud brouser/web portal rev:130626
    1 - Check mark the box on left and select files or folders you would like Deleted/Trashed and move them to the ARCHIVE folder location inside your adobe creative cloud brouser/web portal....Then navigate to the ARCHIVE SECTION
    2 - Once the files or folders you have check marked are moved to the ARCHIVE folder location you can select them for Permanant Deletion (Trash)
    ps: you can also restore them......if you so choose....
    3 - in case you missed this step after selecting/checking the files or folders in the ARCHIVE folder there is a small Triangle Selector drop down that will reviel the Permanently Delete option.... clicking that is the point of no return i think..... so do not be misled my the use of the term ARCHIVE.... DELETING PERMANANTLY IS DELETING YO!
    4 - OK DONE NOW YOU GOT IT .....
    Good Luck Happy House Cleaning.....
    Wamest Blessings,
    Kai Buskirk
    Message was edited by: [email protected] rev: 130626

  • Accidently closed a Acrobat X Standard file without saving it, autosave is on, set for 5 minutes, but where do I find it?

    Accidently closed a Acrobat X Standard file without saving it, autosave is on, set for 5 minutes, but where do I find it?

    Hi Michael,
    That is not how the autosave feature works. Autosave helps in situations where program crashes/freezes or power goes out (basically, in situations where user have no control over the system). Closing the file without saving is not considered as unexpected interruption; it is intentional for most of the users.
    When you close, save manually, or revert to the last-saved version of a file, the autosave file is deleted. Adobe Acrobat X Pro * Saving PDFs

  • Backup corrupt, not compatible w iPhone.  Delete backup for this iphone.  WHERE IS BU LOCATED

    computer crashed as backing up iphone to computer ( windows 7 ).  got grief message:   could not back up the iphone.  backup corrupt. not compatible w iPhone.  Delete Backup for this iphone.  Where is the back up file located.  cannot find file

    The following has a section titled "How to delete a backup in iTunes" (it also gives the backup location but you won't need that): iTunes: About iOS backups

  • How do I delete stored email addresses in my iphone? When sending photos, I don't want to have certain email addresses  "popping up" from the internal memory, I've deleted my entire "Contact" list but they still appear.  Help please!

    How do I delete stored email addresses in my iphone? When sending photos, I don't want to have certain email addresses  "popping up" from the internal memory, I've deleted my entire "Contact" list but they still appear.  Help please!

    As with the Mail app on a Mac, the iPhone's Mail app stores all email recipients in a list of previous recipients which is separate from the address book or contacts. The email address autofill feature when addressing an message pulls from Contacts and from the list of previous recipients.
    Different from the Mail app on a Mac, there is no access to the list of previous recipients with iOS on an iPhone, iPod Touch, or iPad to remove a previous recipient from the list, or to add a previous recipient to the address book or contacts that is not already entered - not at the present time anyway.
    The only way to purge the list of previous recipients at the present time is by restoring your iPhone with iTunes as a new iPhone or not from your iPhone's backup, which will start being re-populated again with every sent message.

  • I have huge lag with Safari's Reading List using a rMBP. I have probably 80 articles saved, which is likely the cause of the lag. Is there any way to export that list of articles so as to be able to delete them from Reading List but still have a record?

    I have huge lag with Safari's Reading List using a rMBP. I have probably 80 articles saved, which is likely the cause of the lag. Is there any way to export that list of articles so as to be able to delete them from Reading List but still have a record of the articles I intend to read?

    I'm currently dealing with this issue myself, except that my rMBP has NO articles in the reading list.  It's a brand new rMBP too, purchased just this week, with the 2.6 Ghz Processor & 16GB of RAM.
    Let's see what we can find.  I may just take it back to the Apple Store.

  • Disable Delete Button for infotype 2001 subtype 0025

    I want to Disable Delete Button for infotype 2001 subtype 0025 only in PA30/61.
    Is there any EXIT available

    Hi
    Try it .
    Somebody already given this type of answers.
    Pls first use Search then post.
    Well FYI,
    <b>There is a standard User Exit for PA30 / 40 for PBO and PAI events.
    ZXPADU01 for PBO and
    ZXPADU02 for PAI events.
    By writing proper code in here for the IT2001, you can write your rules.
    PBAS0001 ( PA: Pers.Admin./Recruitment: Default values and checks ),</b>
    Manoj Shakya.

  • My mini with IOS 7.0.6 is not showing an option for wish list in the options. What is happening?

    My mini with IOS 7.0.6 is not showing an option for wish list in the options. What is happening?

    The three Rs to IOS, try them in order until the issue is resolved;
    Restart - Press and hold the Power button until the red Power Off stripe appears. Swipe to power off. Press and hold the Power button to turn the device back on.
    Reset - Press & hold the Power and Home buttons simultaneously, ignoring the red power off slider, until the Apple logo appears. Then release both buttons.
    Restore - Connect the device to the Mac or PC with which it is usualy synced and use the iTunes app to restore the device to the factory settings. You can then restore the device with a previously made backup or set it up as new.

Maybe you are looking for

  • Header and Footer in SiteStudio designer

    Hi, Is there any option for header and footer in SIte Studio Designer? Regards, Harini.

  • Xml validation ---- file system of PI ???

    hi all ,      i read the xml validation concept of PI7.1 . iam unable to find any practical explanation about the following "To validate the structure of a PI message payload, you should export the schemas from the ESR and save them in the file syste

  • Clearing of GL account

    I have a debit and credit to GL account which can be cleared . I still see them as Open(red light) . How can they be turned to cleared(green light). Why does this not ccur automatically or how can it be done?

  • IProc, PR Account Generation workflow customization

    Hi All, We are in R11.5.10.2 and we are implementing Tax for our client. End user wants to default the segment6 of charge account with the segment6 of tax_code code combination. I've tried to default the account using the package por_custom_pkg but t

  • Troubles using ifcmp60 to migrate forms 4.5 to 6

    I have used this: for %f in (*.fmb) do ifcmp60 build=yes upgrade_plsql=yes upgrade=yes module=%f userid=tes/tes@instance The command alter FMB original file, and create FMX file but it doesn't change code varchar2 instead char. Also create error file