How to hide "View in Browser" and "Edit in Browser" from ECB injected by Office Web Apps Feature

Hi,
i am currently using custom_AddDocLibMenuItems to implement a custom ECB menu for my document library. I need to activate Office Web Apps. My custom_AddDocLibMenuItems has two items
-> custom dialog
-> open in office web apps
After activating the Office Web Apps Feature at the SiteCollection Level, this Feature "injects" in my custom menu the following
additional menu items:
-> View in Browser
-> Edit in Browser
Its curious to see that, cause implementing the js function custom_AddDocLibMenuItems with
return true should be the way to impolement a custom ECB menu without having other features/solutions injecting things in this menu!? Or did i misunderstood something here?
My question is: How can i prevent this ...
a) without deactivating the Office Web Apps Feature
b) without modifying the core.js
I hope someone can help!
Best Regards
Bog
Developers Field Notes | www.bog1.de

May be this can help
http://extreme-sharepoint.com/2011/10/29/hide-menu-ecb/http://pholpar.wordpress.com/2011/07/24/hiding-ecb-custom-actions-based-on-specific-list-properties-using-the-client-object-model/Or tryhttp://stackoverflow.com/questions/13795858/how-to-hide-view-in-browser-in-document-library-in-sharepoint-2010-using-javascr $(document).ready(function(){
$('.ms-MenuUIPopupBody').live('blur', function() {
var elm = $("div.ms-MenuUIULItem a:contains('View in Browser')");
elm.remove();
$("div.ms-MenuUIULItem a:contains('Edit in Browser')").remove();
It is hiding menu only on focus or blur or mouseover
I wants it to be hide on load AS soon as i Click on "V" option on right side of document it should hide View in Browser and Edit in browser
When I click on V option ![I wants As soon as i Click on v option right side of test it should hide view in Browser and edit in browser][1]
If this helped you resolve your issue, please mark it Answered

Similar Messages

  • Office web apps feature not working after setup and configuration?

    Hi I have installed the SP1 update and since then my office web apps features are not coming up in SharePoint. After running the updates and attaching the farm back i see the bindings and settings are applied but somehow the office web apps features are
    not coming up in SharePoint. Can someone let me know what might be the issue?

    Did you delete and recreate the WAC farm after you updated?
    See: https://technet.microsoft.com/en-us/library/jj966220.aspx
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Office Web Apps - how to disable office web apps features for one web application

    ENV: Sharepoint 2010 farm with office web apps + fast search
    I have the requirement for one web application to open all its documents in client applications - I can enable feature "OpenInClient". This web application uses team site template and other web application also uses team site template. ( feature
    stapling ruled out)  Now I can run powershell cmdlet to enable this feature on all the currently existing site collections. But the requirement is to enable this feature for all the future site collections. This web applications has 60 k site collections
    and atleast more than 10 site collections get created each day and they dont like the option to run a powershell script each day to activate this solution.
    Is there any other way to by default activate new site collections on this WA to open in client applications by default (can we disable this office webapps features only on one web app)?
    VM

    I have learnt from this forum that it is not possible to turn off Office web apps on single web application. The line of control lies at farm level and then at site collection.
    Disable
    Office Web Apps on web application
    VM

  • How do i view itunes store and my library at the same time?

    how do i view itunes store and my library at the same time?

    apple killed this feature (and i'm really unhappy about this!!). please send a request to apple directly. they obviously don't read this forum. the more people complain about this, the better!
    http://www.apple.com/feedback/itunesapp.html

  • Office Web Apps 2013 - Excel, fine, Word & Powerpoint, unable to view.

    Hi All,
    I am having an infuriating issue where by the following occurs when opening documents via OWA:
    Excel - Preview, no problem, opening, no problem, editing, no problem (even when accessing oData connections for PWA).
    Word - Preview, errors, opening, errors, editing (incredibly!!) works.
    PowerPoint - Nothing works...
    I think I have read every blog post on every error I am receiving in the ULS but nothing is resolving. It is on a VMware VM and I had to reinstall OWA after it was noted that it has rather surprising behaviour if OWA is not installed on the system drive.
    I have installed each hotfix/update and tested after each with no joy...
    Three (possibly misleading) error categories:
    From OWA log:
    Cannot create WOPI Proof Token - could not find valid old proof key;
    From SP log:
    WOPI Proof: Missing Header;
    Useragent not available, file operations may not be optimized (doubt this is causing my problem but the quality of errors in the logs is so bad it may well be).
    For context, the service account for OWA is local admin on the box and has full access to the content databases on the SQL server.
    The symptoms of the error are the biggest concern given the degrees of success I am having with the different apps (kind of rules out security or setup if Excel works fine and Word sort of works).
    Any help will be very much appreciated and may stop my increasing baldness with the amount of hair I am pulling out!!
    Thanks in advance.
    Sam

    Hi  Sam,
    According to your description, my understanding is that Office Web Apps does not work for viewing Word & PowerPoint.
    For troubleshooting your issue, please access the Office Web Apps Server discovery URL to verify that the Office Web Apps Server farm is working for Word & PowerPoint:
    http://servername/hosting/discovery
    Also please add the OWA url into your “Trusted Sites” in IE.
    Reference:
    http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/MS-SharePoint/Q_28102553.html
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Eric Tao
    TechNet Community Support

  • Browse and Edit Form - JSP

    Hi all,
    Using BC4J and BC4J JSP to generate Browse and Edit Form, e.g. EmpView_browse.jsp, and EmpView_Edit.jsp, I want to show only a few attributes in browse, and all fields in edit. If I change the "display" in control hint to hide, the attribute will not be displayed in both pages.
    Please help.
    Regards,
    Terry Luk

    Hi,
    try something like this :
    <jbo:ViewObject id="voBrowse" name='<%=dsParam%>' />
    <jbo:AttributeIterate id="df" datasource="<%=dsParam%>">
    <% if (df.getName() == "InvoiceNr") {
    <th class="clsTableHeader" title="<jbo:ShowHint hintname='TOOLTIP'></jbo:ShowHint>" ><jbo:ShowHint hintname="LABEL"></jbo:ShowHint></th>
    <% }%>
    </jbo:AttributeIterate>
    <jbo:RowsetIterate datasource="<%=dsParam%>" changecurrentrow="false" userange="true">
    <tr>
    <jbo:AttributeIterate id="dfv" datasource="<%=dsParam%>">
    <% if (dfv.getName() == "InvoiceNr") {
    <td title="<jbo:ShowHint hintname='TOOLTIP'></jbo:ShowHint>" valign="top" > <jbo:RenderValue datasource="<%=dsParam%>"/> </td>
    <% } %>
    </jbo:AttributeIterate>
    </tr>
    </jbo:RowsetIterate>

  • ADF Task Flow: Browse and Edit pages

    Hi,
    My application includes two pages, a Browse page and an Edit page. The Browse page provides the list of departments (read-only table) and allows you to select a department from the list to edit the department details (form).
    How can I develop this common scenario using ADF task flows? Important - I need to display Browse and Edit on two different jsf pages.
    Thanks, Al

    It should be pretty easy.
    1) Create your browse and edit page
    2) drop them onto a task flow
    3) Connect the pages with navigation cases.
    4) Set the ACTION property of a button on the browse page to reference the navigation case that goes to the edit page
    5) Hook up the reverse to go back to the browse page
    Done!

  • How can I view the source code of chrome://browser/content/browser.xul?

    How can I view the source code of chrome://browser/content/browser.xul of mobile FireFox?
    In my desktop version I just open this page in new tab and view webpage source, but there is no option for FF mobile to view source code.
    Best regards.

    Does the view-source: protocol work on mobile?
    *view-source:chrome://browser/content/browser.xul

  • How do I view page margins and drag objects around to fit?

    How do I view page margins and drag objects around to fit?

    Hi Sime,
    Some ideas for workarounds now that Numbers 3 has lost Page Setup, Print View and Layout View.
    1. Numbers 2.3 is still on your computer unless you deleted it. Look in your Applications folder for the iWork '09 folder. Drag the Numbers '09 (Numbers 2) icon to your Dock. It will become an Alias. Right click (or control click) on it then Options > Keep in Dock. You might actually enjoy running both versions at the same time, to compare features. Just be careful which version you are running before you edit and save.
    2. Use Numbers 3 to export a document 'backwards' to Numbers 2. Be aware that features lost in Numbers 3 may not be restored by exporting 'backwards' to Numbers 2.
    3. In Numbers 3 > Preferences > Rulers
    Those Guides help you to align objects with each other.
    4. Menu > View > Show Rulers. This will show zero for the top or right left margin. Then drag a ruler guide from top or left.
    More hints on workarounds here:
    https://discussions.apple.com/message/23622372#23622372
    What has been GAINED in Numbers 3 is here:
    https://discussions.apple.com/thread/5473882?start=45&tstart=0
    If you want to see what has been lost in Numbers 3, go here:
    https://discussions.apple.com/thread/5470448?start=240&tstart=0
    Regards,
    Ian.
    Message was edited by: Yellowbox. Oops, This will show zero for the top or *right* margin. Mirror image this to *left* margin

  • How do I view the height and width of an image as I adjust the crop handles

    How do I view the height and width in pixels of an image as I adjust the crop handles before I actually crop the image?

    If you are in Photoshop CC, go into Preferences, click Interface, and turn on Show Transformation Values. In the picture below, setting it to Top Right means the pixel height and width appear to the Top Right of the Crop tool pointer.
    (Edit: The picture only shows Height because the bottom edge is being dragged. If a corner was being dragged it would say H and V.)

  • How to hide to left arrow  and to right arrow on Navigation panel

    Hi frineds:
       could you please tell me how to hide to left arrow  and to right arrow on Navigation
    panel ?
    I guess they should be  Incremental Expand Icon   Collapse  Icon in Ethem editor.
    thank you very much .
    Edited by: jingying Sony on Jun 22, 2010 9:07 AM

    Hi,
    Navigate to the Navigation panel of the selected Theme  and make the width as 0px 0px 0px and also upload the blank image with the same background color.
    Thanks & Regards||
    Ashok Kumar M.

  • How can you use one image and edit it three different ways to export later?

    I am a new Lightroom 3 user.  How can use the same image and edit it multiple ways to produce mulitple images to later export?  For example,  I have a picture of a bride and groom.  I want to use that image and create a color image, a black and white image, and a close up of their hands.

    Do I need to do either of those options before I start editing the image at all?  For example,  what if I am working on the image and doing some creative edits.  Then I think of another option that I could do.  Is it too late at that time or can I still get the original image to begin with?

  • HT5824 how can i add and edit my contatcs from my iphone

    Hello please help me ..
    how can i add and edit my contatcs from my iphone

    Hello there ttikkiscy,
    It sounds like you would like to know how to add to and edit your iCloud Contacts. First make sure you are using the iCloud Contacts function with this article:
    iCloud: Change iCloud feature settings
    http://support.apple.com/kb/PH2613
    On your iOS device’s Home screen, go to Settings > iCloud, then tap to turn on or off iCloud features.
    Once that is turned on and you can see your contacts in the Contacts app, use this part of the iPhone Basics guide here http://support.apple.com/kb/TI138
    Create and edit a contact.
    In Contacts, tap + to pull up a new contact card. Enter the person’s info and tap Done.
    To edit a contact, pull up the card and tap Edit. Make your changes and tap Done to save.
    To delete, scroll down, and tap Delete Contact.
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

  • How do I view fps? and how do I adjust fps in final cut pro x?

    How do I view fps? and how do I adjust fps in final cut pro x?

    The frame rate shows in the Inspector. Conform in the retiming menu of the toolbar will let you change the frame rate.

  • My safari won't let me view a pdf link, nor can I save it as a document. How can I view these pdfs and links?

    My safari won't let me view a pdf link, nor can I save it as a document. How can I view these pdfs and links?

    Have you installed Adobe Reader and its associated plugin? AFAIK, that's the preferred if not the only way to open PDFs in an embedded view within Safari.
    http://get.adobe.com/reader/

Maybe you are looking for