How to hide menu item(Download a Copy...etc) of online site in sharepoint app according to different condition

My requirement is that need to build a  sharepoint app, the app need to deploy to office store, whether to display "Download a Copy" according to different login in user(sharepoint office365 user), 
click the  documnet, navigate to the other website,  after get the document stream, i need to convert the stream to the other data format(pdf...etc),  maybe i need the third-party dll to achieve it, so i think of sharepoint provider-hosted
way to handle the requirement.
i don't know whether there are the other way , if my way is the best, how to achieve it ?
Thanks

Hi,
According to your post, my understanding is that you want to hide "Download a Copy" according to the user permissions.
We can achieve it using jQuery and SharePoint REST API. Use REST API to check user permissions, then hide "Download a Copy" like this:
$("A[id$='Ribbon.Documents.Copies.Download-Large']").hide();
http://www.lifeonplanetgroove.com/checking-user-permissions-from-the-sharepoint-2013-rest-api/
For other questions, I would suggest you post it in a new thread, it would make others easier to focus on one question in one single thread and it will benefit other community members who stuck with the same question.
Best Regards
Dennis Guo
TechNet Community Support

Similar Messages

  • How and where do i download a copy of photoshop CC on a second computer ?

    how and where do i download a copy of photoshop CC on a second computer ?

    You will install it the same way you did on the original computer.
    Creative Cloud Help / Creative Cloud for desktop
    https://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html
    Creative Cloud Help / Sign out, Sign in | Creative Cloud desktop app
    http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
    Creative Cloud Help / Install, update, or uninstall apps
    http://helpx.adobe.com/creative-cloud/help/install-apps.html
    Installing Creative Cloud Apps
    http://tv.adobe.com/watch/cs6-creative-cloud-feature-tour-for-video/installing-desktop-app s-from-creative-cloud/

  • How to hide a Item ?

    How to hide a Item for exemple in a selectOneListBox ?
    Thanks

    I posted an example on my blog
    http://groundside.com/blog/GrantRonald?title=making_a_field_disabled_depending_on_the&more=1&c=1&tb=1&pb=1
    instead of the DISABLED property use RENDERED property
    or
    http://groundside.com/blog/GrantRonald?title=conditional_rendering_of_jsf_fields_depe&more=1&c=1&tb=1&pb=1
    Hope that helps
    Grant Ronald
    Oracle Product Management

  • HT5525 How do I pay and download a copy of iPhoto 9.x

    How do I pay and download a copy of iPhoto 9.x when I already have iPhoto on my machine that was bought by another apple id?

    More info:  I bought this used Mac Pro (2008) with Mountain Lion, iPhoto (iLife) reinstalled on it and I have paid for and installed Mountain Lion.  Should my purchase of Mountain Lion include the iLife suite or do I have to buy each one separate?  
    I suspect that I have to buy them separate but how do I by them as when go to the App store the only option that I have is to update and not repurchase.
    Any help would be greatly appreciated.
    Steve

  • When I tap a menu item (File, Edit, View,etc.) flashing info moves across the screen. I am unable to get to Bookmarks, copy or anything. How do I stop this from happening?

    This has never happened before.
    I don't understand why the arrow tapped on the menu item
    causes the menu list to move rapidly across the window screen.
    I am unable to click Print or exit or anything
    What is that Shockwave Flash 11.1 r102
    I don't recall installing that!

    '''Bookmarks'''<br />
    *In Firefox, Bookmarks are the same as Favorites in IE; just a different name.
    *Info and links about Bookmarks in Firefox: http://support.mozilla.com/en-US/kb/Bookmarks
    '''Video'''<br />
    It depends on the type of video file. If they are .flv files (like youtube.com), you need to install Flash for Firefox; you do not have it installed for Firefox. There are 2 versions of Flash, one for IE only (ActiveX version) and one for most other browsers including Firefox (Plugin version). You must update each one individually.
    #'''using Firefox''' download and save Flash from this link (save to your Desktop; easier for you to find): get.adobe.com/flashplayer
    #when the download is finished, close Firefox (click Firefox button > Exit '''''OR''''' File > Exit, if using the Menu Bar)
    #click or double-click the file you just downloaded
    #on the left side of the install window, put a check mark in the box next to "I have read and agree"
    #click on the Install button on the lower right of the install window; it will light up after you put the check mark in the previous step
    #let the installation complete; it is quick
    #'''using Firefox''' test your installation of Flash here: http://www.adobe.com/software/flash/about/
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • Hide menu items like you can in Acrobat?

    When creating PDFs in Adobe Acrobat, you can set some ViewerPreferences:
    * Hide Menubar 
    * Hide Toolbars
    * Hide Window Controls
    These settings can be set via "Document Properties" => "Initial View" => "User Interface Options" 
    I can't find these in LiveCycle Designer. How can I change these? I'm lousy at scripting, so if anyone has an sample, that would be invaluable.

    Hi,
    I have a form here: http://assurehsc.ie/blog/index.php/2010/05/script-to-access-acrobat-menu-items/  There is a link to the PDF in the post.
    This shows the execMenuItem()'s that are available to you. Not all of these are exposed due to security issues.
    Some of these may help you.
    Niall

  • XCode How to modify menu item

    Newbie here. Have been searching around not have not been able to find a example that shows how to modify a menu item dynamically.. eg. Like in the menu bar the battery menu info is able to show how much battery life is left.

    Have you looked over Views in Menu Items in +Application Menu and Pop-up List Programming Topics for Cocoa+, or the MenuItemView sample app?

  • How to Disable Menu item in Oracle Applications

    Hi,
    How can I disable a Menu (Actions->user defined menu) Item in Oracle applications by using forms personalization.
    Our requirement is to display a message on click of a standard menu using form personalization and it should retain the seeded functionality.
    Thanks
    Prasanna
    Edited by: user13029651 on Jul 30, 2010 6:47 PM

    As an Oracle Applications Developer, your best friends are going to be the following docuements:
    <ul><li>Oracle Applications Developer's Guide </li>
    <li>Oracle Applications User Interface Standards for Forms-Based Products</li>
    <li>Oracle Application Framework Personalization Guide</li></UL>
    These and all of the other related EBS documents can be found in the Oracle Applications (EBS) Documentation Home and don't forget the Oracle eTRM Technical Reference, but you will need an Oracle Support contract to access this site.
    When you can't find your answer in these document sources, you can always ask for help in the E-Business Suite group of forums.
    Craig...

  • How to hide menu bar in SAP EP 7.4

    Dear all,
    We are upgrading our system from EHP4 to EHP7.
    How to hide the menu bar (Back, forward,history, favorites, etc..) in the SAP Enterprise portal  7.4 version ?
    Please help me to resolve the issue. Thanks in advance.

    Hi,
    This can be achieved in Framework Page Configuration.
    Navigate to Content Administration -->Portal Display -->Framework Page Configuration.
    Then choose the Frame work Page which is configured .
    In Menu area uncheck the options which you want to hide it in the Framework Page.
    Regards,
    Srinivasan V

  • How to make menu-item of current page appear in a different font color?

    Hi,
    My menu-bar works just fine. Hovering the links I get the text to take display the desired color. Now I want the menu-item of the selected page to show a third color.
    With live-code enabled in Dreamweaver CS6, I can see the following code being generated by the Dynamic menu:
    <script type="text/javascript" src="/CatalystScripts/Java_DynMenusSelectedCSS.js"></script><!-- Dynamic Menu Begin CSS Output --><div id="cat_549633_divs"><ul id="nav_549633"><li class="selected"><a href="/home.html">Home</a></li><li><a href="/leistungen.html">Leistungen</a></li><li><a href="/uhrenservice.html">Uhrenservice</a></li><li><a href="/versteigerungen.html">Versteigerungen</a></li><li><a href="/diamanten.html">Diamanten</a></li><li><a href="/ueber_uns.html">Über uns</a></li><li><a href="/kontakt.html">Kontakt</a></li></ul></div><script type="text/javascript">catSetSelectedCSSItem('nav_549633');</script><!-- Dynamic Menu End CSS Output -->
    The class .selected is being created in the first list-item (home) as this is the current page.
    And here is my CSS:
    #nav_549633 {
              float: right;
              list-style-type: none;
              padding-top: 5px;
    #nav_549633 li {
              float: left;
              text-align: left;
    #nav_549633 li a {
              color:white;
              text-decoration: none;
              margin: 0 27px 0 0;
              font-size: 13px;
              text-transform: uppercase;
    #nav_549633 li a:hover {
              color: yellow;
    .selected {
              color: green;
    The font color green does not appear. It is still white.
    In order to see if the class is "working" I tried some other attributes, that DO work!
    .selected {
      color: green;
      padding: 20px
      background-color: blue;
    In this case, the item appears as a blue box with 20px-padding, just as expected - but the font-color is still white.
    Can anyone help me?
    Regards,
    Herman

    Hi Mario,
    Here's the link to my site:
    http://grootaartseuronics.businesscatalyst.com/index.html
    I have found a solution myself for 2 of the 3 questions i had:
    I have deleted/changed this div: #nav_1371057 li li
    And created a few new ones:
    #nav_1371057 li li a, #nav_1371057 li li a:visited (To control the link en visited link colors in the sub-menu other than the root-menu)
    #nav_1371057 li li a:hover (to control the hover in the sub-menu other than the root-menu if nessesary)
    #nav_1371057 li li.selected a (to control the selected link and let the link change color or bolder like in my case)
    Here are the CSS styles I used:
    #nav_1371057 li li.selected a { /*Dit veranderd de dikte (bold) van de geselecteerde link in het submenu, dus de pagina waar je bent*/
    font-weight:bolder;
    #nav_1371057 li li a, #nav_1371057 li li a:visited{
    background:  #006;
    color:#ffffff;
    #nav_1371057 li li a:hover{
    background:  #999;
    color:#ffffff;
    Only thing i can't figure out is how I can change/control the color of the arrow which is black now. And i want to make it blue.
    Thanks,
    Frank

  • APEX dynamic action - How to hide an item after the page loads

    Hello
    I have a form  with  item  Type,  lesson and page.   I want to create a  dynamic action like "on page load" if Type = x then don't show lesson and page items. .
    How do I say if Type=x then  don't show lesson and page. otherwise show them.
    Please note Dynamic action,  Event=Page load
    Thanks

    create dynamic action like
    Event:Change
    Selection Type:Item
    Item:Type
    Condition:Equal To
    value:X
    Select Action:Hide
    Select Items to hide
    also create opposite false action
    and click on page checkbox below action to yes
    Hope this may helps
    pars.

  • How to disable menu items through c# in adobe x standard. I didn't find the required APIs.

    Hi
    We are working on a desktop application on C# which uses Adobe Express 5.0. to view the PDF files. Recently we had an issue reported that PDFs created in Adobe 9 are not opening up. So we decided to upgrade to Acrobat Adobe X Standard. Now the issue is that I have to suppress controls (tool bars(or Panels), menu items) for which I'm using the below code which worked in express 5.0 but not on Adobe X. Also I want to view the toolbar by default instead of the translucent menu at the bottom of the page.
    Acrobat.CAcroApp.ToolButtonRemove("SaveFileAs");
    Acrobat.CAcroApp.MenuItemRemove("Quit");
    Please help.
    Thanks,
    vinay

    Hi
    We used javascript to find out the names of the menu items that are present in the Adobe 9.0 Std. I presume that it would work even for Adobe 10.o as well. After that in the .NET C# code we have used App.RemoveMenutItem ("<<MenuItemName>>") to disable all the menu items that we dont want You can search for javascript references for Acrobat and you would find many.
    Also I've figured out another way where you remove the .api files from your plugins folder, however I'm not sure if it would create any further problems. This is route is not taken, atleast for now.
    Please post here the route taken by you.
    Thanks.

  • How to hide messagetextinput item on root node in HGRID

    Hi,
    I have added one messagetextinput item in HGRID.
    But it is showing 3 items(one for root node, 2 for the actual items) when there are 2 rows in master node.
    +Employee          |________|
    -101 |________|
    -102 |________|
    I want to hide the item at root node(i.e. for employee.)
    I am working on seeded page, not the custom page.
    Can someone help me..
    --Parag                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Add a switcher in Hgrid, Create 2 items in switcher. One is input type and other is styled text. Switch the values of switcher based on condition from VO.
    For detailed help, feel free to mail me at [email protected]
    OAHGridBean hGridBean =
    (OAHGridBean)webBean.findChildRecursive("QotLinesHGridRN");
    if (hGridBean != null) {
    OASwitcherBean switcherbean =
    (OASwitcherBean)createWebBean(pageContext, SWITCHER_BEAN, null,
    "DellPriceSwitcher");
    switcherbean.setLabel("Dell Auth. Unit Price");
    switcherbean.setViewAttributeName("Attribute20");
    switcherbean.setViewUsageName("QuoteLinesLevel70VO1Obj");
    hGridBean.addIndexedChild(9, switcherbean);
    //Add dell auth unit price text input item
    OAMessageTextInputBean inputbean =
    (OAMessageTextInputBean)createWebBean(pageContext,
    MESSAGE_TEXT_INPUT_BEAN,
    null,
    "DellAuthPriceinp");
    OAMessageStyledTextBean styledbean =
    (OAMessageStyledTextBean)createWebBean(pageContext,
    MESSAGE_STYLED_TEXT_BEAN,
    null,
    "DellAuthPricestyled");
    inputbean.setReadOnly(false);
    inputbean.setViewAttributeName("Attribute1");
    inputbean.setViewUsageName("QuoteLinesLevel70VO1Obj");
    styledbean.setViewAttributeName("Attribute1");
    styledbean.setViewUsageName("QuoteLinesLevel70VO1Obj");
    inputbean.setColumns(5);
    switcherbean.setNamedChild("DellAuthPriceinp", inputbean);
    switcherbean.setNamedChild("DellAuthPricestyled", styledbean);

  • How to add menu item in Virtual Folders Actions Menu

    Hi ,
    I am writting a custom component which will add some action on documents and virtual folder.
    I am able to add the menu item for DocInfo, but not able to add Menu Item in Virtual Folders Actions Menu.
    Please help!!
    thanks

    I am able to add the menu item for DocInfo, but not able to add Menu Item in Virtual Folders Actions Menu.What exactly you are trying to modify? If web GUI, it should be following the same principles as your "DocInfo" changes (only the basis service is COLLECTION_DISPLAY). If you are trying to modify Desktop Integration Suite, I'm afraid there is no help (at least, I have not heard that DIS could be modified by custom components).

  • Trying to create a hideitem.js file to hide menu items in reader 11.07

    I am looking to hide menu selections for Reader 11.0.7 by creating a HideItems.js file, is there a utility or document that I can refer to that identifies the values for each menu selection?
    In the example below  the value "HelpReader" was used, I am looking to find other values for additional menu selections.
    //[Help - Adobe Reader X Help]
    app.hideMenuItem("HelpReader"):
    In particular I am trying to hide the View>>Comment>>Annotations and the View>>Read out loud entries.
    thanks in advance
    MtDew

    Thank you for your information, this was exactly what I needed
    thanks
    Bob
    On Wed, May 14, 2014 at 1:43 PM, Gilad D (try67)

Maybe you are looking for

  • Firewire to External Monitor quit working

    I have a firewire running to my video camera then to an external monitor. It has worked fine but last night it won't send the signal to the monitor. I also lost my favorites in FCE at the same time. I don't know if the two are related though. I am st

  • Project-Stock Handling units using HUPAST

    Hi folks, we want to use handling units with project stock (SOBKZ = Q). While it's easy to create handling units on project stock with HU02 it does not seem to be possible with HUPAST. System does not allow the edit the field SOBKZ in HUPAST. Does an

  • Problem with iPod output preset

    I am trying to output a video for my client's iPod.  This is the first time that I've been requested to do this.  I have tried using both the large video and small video H.264 iPod presets.  Each time, the resulting video is jittery.  I had no troubl

  • Document flow in Inbound delivery not updated as in PO History for the SA

    Hi, We have an SA with 2 line items. All GR's & IR's have been reversed for the line items in SA. The document flow incorresponding  Inbound delivery is not updated correctly for these line items. The GR have all been reversed with correct quantities

  • GPS Metadata filter

    I imported a few photos to experiment and added GPS data to some. After adding location to some photos the metadata filter list for GPS Location shows All (2 GPS Locations)  53 Current Map Region 14 Location A     14 This just seems wrong, the number