How To Add Custom Tab To ListView Only

I have the following custom action elements.xml snippet that is supposed to only display my custom tab and custom action button on the ListView.  
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
Id="MYCUSTOMSOLUTIONRibbonTab"
Location="CommandUI.Ribbon.ListView"
RegistrationType="ContentType"
RegistrationId="0x010014D754C688D12A4FB4C811B4B4F67A5C"
Sequence="0"
Rights="ViewListItems">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition
Location="Ribbon.List.Share.Controls._children">
<Tab
Id="Ribbon.MYCUSTOMSOLUTION"
But when I click on the list item and it displays the modal dialog for the list item I see that the tab is also visible on the DisplayForm for the item.
How can I display the custom tab on the list view only?

Hi,
The reason of this issue could related to the some settings of the custom action element.
The workaround above also work for SharePoint 2010.
Here is a detailed code demo works fine in my environment:
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
Id="MyCustomRibbonTab"
Location="CommandUI.Ribbon.ListView"
RegistrationId="100"
RegistrationType="List">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition
Location="Ribbon.Tabs._children">
<Tab
Id="Ribbon.CustomTabExample"
Title="My Custom Tab"
Description="This holds my custom commands!"
Sequence="501">
<Scaling
Id="Ribbon.CustomTabExample.Scaling">
<MaxSize
Id="Ribbon.CustomTabExample.MaxSize"
GroupId="Ribbon.CustomTabExample.CustomGroupExample"
Size="OneLargeTwoMedium"/>
<Scale
Id="Ribbon.CustomTabExample.Scaling.CustomTabScaling"
GroupId="Ribbon.CustomTabExample.CustomGroupExample"
Size="OneLargeTwoMedium" />
</Scaling>
<Groups Id="Ribbon.CustomTabExample.Groups">
<Group
Id="Ribbon.CustomTabExample.CustomGroupExample"
Description="This is a custom group!"
Title="Custom Group"
Sequence="52"
Template="Ribbon.Templates.CustomTemplateExample">
<Controls Id="Ribbon.CustomTabExample.CustomGroupExample.Controls">
<Button
Id="Ribbon.CustomTabExample.CustomGroupExample.HelloWorld"
Command="CustomTabExample.HelloWorldCommand"
Sequence="15"
Description="Says hello to the World!"
LabelText="Hello, World!"
TemplateAlias="cust1"/>
<Button
Id="Ribbon.CustomTabExample.CustomGroupExample.GoodbyeWorld"
Command="CustomTabExample.GoodbyeWorldCommand"
Sequence="17"
Description="Says good-bye to the World!"
LabelText="Good-bye, World!"
TemplateAlias="cust2"/>
<Button
Id="Ribbon.CustomTabExample.CustomGroupExample.LoveWorld"
Command="CustomTabExample.LoveWorldCommand"
Sequence="19"
Description="Says I love the World!"
LabelText="I love you, World!"
TemplateAlias="cust3"/>
</Controls>
</Group>
</Groups>
</Tab>
</CommandUIDefinition>
<CommandUIDefinition Location="Ribbon.Templates._children">
<GroupTemplate Id="Ribbon.Templates.CustomTemplateExample">
<Layout
Title="OneLargeTwoMedium"
LayoutTitle="OneLargeTwoMedium">
<Section Alignment="Top" Type="OneRow">
<Row>
<ControlRef DisplayMode="Large" TemplateAlias="cust1" />
</Row>
</Section>
<Section Alignment="Top" Type="TwoRow">
<Row>
<ControlRef DisplayMode="Medium" TemplateAlias="cust2" />
</Row>
<Row>
<ControlRef DisplayMode="Medium" TemplateAlias="cust3" />
</Row>
</Section>
</Layout>
</GroupTemplate>
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler
Command="CustomTabExample.HelloWorldCommand"
CommandAction="javascript:alert('Hello, world!');" />
<CommandUIHandler
Command="CustomTabExample.GoodbyeWorldCommand"
CommandAction="javascript:alert('Good-bye, world!');" />
<CommandUIHandler
Command="CustomTabExample.LoveWorldCommand"
CommandAction="javascript:alert('I love you, world!');" />
</CommandUIHandlers>
</CommandUIExtension>
</CustomAction>
</Elements>
Here is a detailed article for your reference:
https://msdn.microsoft.com/en-us/library/office/ff407250%28v=office.14%29.aspx
Thanks
Best Regards
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].
Jerry Guo
TechNet Community Support

Similar Messages

  • How to add new tab page to equiment ?

    Dear Guru's
    i created the new equipement category K by coping the standard S.when i am creating the equipment while using equipment category S i am getting tab pages General,Location,organization,structure,Sales and Distribution.
    But while using the equipment category K for creating the new equipment i am getting the tab pages General,Location,organization,structure 4 only.
    why the 5 one Sales and Distribution is not coming ?
    how to add new tab page like Partners ?In that fields like sold to party,ship to party ?
    Could anybody help me in this regards
    Thank you
    suribabu

    In Equipment category creation config in IMG, check for the View Profile for both the equipment category S & K.
    For adding new tab, follow the IMG path.
    PM & CS => Master data => Technical Objects => General Data => Set view profiles for Technical objects
    Select the View profile which has been assigned to your equipment category & click Activity & layouts of views. In that screen, under seq.no, select the Partners.
    Do the same for other requried tabs based on your requirement.
    If there are same profile assigned to both equipment category, go to equipment creation creation => Edit => view selection. There you will find the required tabs.

  • Add custom tab in qm01

    Hi
    I have to add custom tab in qm01, qm02 , so that fields added
    on screen exit
    SAPLIQS0  7790 USER0001 SAPLXQQM  0100
    should appear on that tab.
    how to do that?
    regards
    subhanshu

    Hi,
      If you have create a proj in CMOD and activated the screen the new tab should be avaliable if it is not it might need some customizing try like below:
    Transaction AOLK>>Select your Asset class click on General Assignment of Layout
    Go to transaction AOLA. Copy the tab layout u2018SAPu2019 to create another layout, say, ZSAP.
    System will copy all the settings and will inform you about that.
    Select your newly created layout and double-click on the folder u2018Tab page titlesu2019.
    You want to put your custom fields in the tab page u201CGeneralu201D. So, select this tab page entry and double-click on the folder "Position of Groups".
    Here, all the field groups currently residing in the tab-page u201CGeneralu201D are shown. Add an entry for your newly created fields.
    Select the group box from the list. An entry will come with u201CUu201D padded with the custom subscreen prepared by you.
    Then, save and come out.
    Now, go to tcode AOLK and assign tab layout ZSAP. for asset class 1000.
    check now.
    Regards,
    Himanshu

  • How to add navigation tabs ?

    i am adding a tab :-
    Experience Definition Features --> Edit Navigation Options --> Edit Links
    there is option of adding only one tab it comes when i Add Pages ..
    how to have more tabs ?
    and how to have a tab with out dropdown feature like adminisrtation tab ?
    thanks in advance

    Answering your first question,
    I think we can have only 1 tab with add links option. Not sure how to add second tab there.
    Answering your second question,
    1) Craete a community
    2) In the security page, choose "mandatory with tab" for the respective user group.
    3) This will add a tab to that communty in the header.
    Bharat

  • How to add custom Template transaction types ( for Quote ) ?

    How to add custom template in transaction types?
    Note : I have gone through below note. But not getting appropriate solution for this.
    982142.1 (OM Sales Order Template Not Available In Layout Template LOV For Print&Preview)
    444687.1 (OM Quote Template Not Available In Layout Template LOV for Print And Preview)
    Thanks in advance..
    Sameer

    Hi
    Thanks for your support,
    Pls let me know which steps i should go ?  my secanrio is  inbound side only,
    step 1 )   Define idoc extension for HRMD_A01 using WE30 transaction and define it in partner profiles
    step 2) do i need to write some code in BADI also to update information for my custom infotype also  if yes then where and which BADI pls let me know  ? because already am working on one badi HRALE00INBOUND_IDOC for  few validation for incoming data.
    step 3 )  add  this new custom infotype in my standard ALE  filters.
    Pls let me know if am mistaking some where or if  i have to do some thing else ?
    Regards
    Meeta & Glory

  • How to add extra tab in bapi at item level

    hi developer,
    please guide me in solving this problem i.e how to add extra tab in bapi at item level .
    thanks .
    ravi

    What are you exactly asking for, I don't understand your question...
    Transaction screen, adding a tab / customer fields
    Business Object / BAPI, modifying BAPI signature, extension
    NB : The quality of an answer depends significantly on the quality of the question ...
    Regards,
    Raymond

  • How to Add custom Attribute in XML

    How to add Custom attribute recusrivly. With sequence order.
    //Before xml:-
    var myxml:XML=
    <root>
    <leval0 >
    <leval1 >
    <leval2></leval2>
    <leval2></leval2>
    </leval1>
    <leval1 >
    <leval2></leval2>
    <leval2></leval2>
    </leval1>
    </leval0>
    </root>
    ////After xml:
    var myxml:XML=
    <root>
    <leval0 levalid="0" >
    <leval1 levalid="0_0" >
    <leval2 levalid="0_0_0"></leval2>
    <leval2 levalid="0_0_1"></leval2>
    </leval1>
    <leval1 levalid="0_1" >
    <leval2 levalid="0_1_0"></leval2>
    <leval2 levalid="0_1_1"></leval2>
    </leval1>
    </leval0>
    </root>

    //call this method
                trace(addAttribute(myxml));
    //method
                private function addAttribute(node:XML, depth:String = ""):XML
                    if (node.hasComplexContent())
                        var count:int = 0;
                        var prefix:String = 0 < depth.length ? depth + "_" : "";
                        var currentAtt:String;
                        for each (var nodeItem:XML in node.children())
                            currentAtt = prefix + count;
                            nodeItem.@levalid = currentAtt;
                            addAttribute(nodeItem,currentAtt);
                            count++;
                    return node;

  • Office 365 - sharepoint: In Advanced search Page, How to add custom column under property restrictions

     In Advanced search Page, How to add custom column under property restrictions?

    Hi,
    The Navigation control can be added into your HTML page in the Snippet Gallery:
    The two links below about how to create HTML master page and adding snippets needed into it for your reference:
    http://borderingdotnet.blogspot.jp/2012/12/how-to-create-html-masterpage-for.html
    http://msdn.microsoft.com/en-us/library/office/jj822370(v=office.15).aspx
    Feel free to reply if there still any question.
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • How to add new tab screen in transaction BP

    Hi,
       Please let me know How to add new tab screen in transaction ukm_BP. Is there any SPRO configuration needed for this?
    Thanks,
    Debi.

    Hi,
    You may also try the exits available with the MIGO transaction. To find exits you can use the fillowing code by giving tranasaction code as input.
    REPORT  zrmexitfinder                               .
    TABLES: modsap, modact, tstc.
    PARAMETERS: input1 LIKE tstc-tcode DEFAULT ' ',
                input2 LIKE modsap-typ DEFAULT ' '.
    DATA: search1(6),
          search2(3),
          search3 LIKE modsap-member.
    DATA : first_row VALUE 'Y'.
    CONCATENATE: '%' input1 '%' INTO search1,
    '%' input2 INTO search2.
    SELECT * FROM tstc WHERE tcode LIKE search1.
      first_row = 'Y'.
      CHECK tstc-pgmna NE space.
      CONCATENATE '%' tstc-pgmna '%' INTO search3.
      SELECT * FROM modsap WHERE typ LIKE search2
      AND member LIKE search3.
        SELECT SINGLE * FROM modact WHERE member = modsap-name.
        IF first_row EQ 'Y'.
          WRITE: /0 tstc-tcode, 6 tstc-pgmna, 16 modsap-name, 32 modsap-typ,
                 45 modsap-member, 70 modact-name.
          first_row = 'N'.
        ELSE.
          WRITE: /16 modsap-name, 32 modsap-typ, 45 modsap-member, 70 modact-name.
        ENDIF.
        CLEAR : modsap, modact.
      ENDSELECT.
      IF sy-subrc NE 0.
        WRITE : /0 tstc-tcode, 6 tstc-pgmna, 30 'No exits found'.
      ENDIF.
      CLEAR tstc.
    ENDSELECT.
    END-OF-SELECTION.
      CLEAR: search1, search2, search3.
    Regards,
    Renjith Michael.

  • How to  add Custom Relationship in MSS Employee Search Drop down

    Dear Sap Fans,
    I would like to link Custom Drop down link at following path.
    Manager Self-Service->Team->Employee Information->General Information->Employee Selection
    Drop Down 1. Direct Reports
              2. Employee from Organization Structure
              3. Employee from Organization Units
              4. Who's Who
    We would like to add one more custom drop down. Can any one suggest how to add custom drop down in this list ? We have created custom relationship in R/3 but it is not showing in Portal.
    Your prompt reply highly appreciated and points will be rewarded.
    Regards,
    Ashish Brahmbhatt

    Barin,
    I have done settings in back end. I have created new realtionship for evaluation path. I am not able to see that link on portal. How/From Where I can use object and data provider tool and eventing for config ?
    rds,
    Aashish

  • How to add  customer group(KNVV-KDGRP)in the  standard report?

    Dear  All,
    My customer requirment is that  Customer group (KNVV-KDGRP)wise  should be run  in  FBL5N report AND   Customer group should be shown in  FBL3N report.
    how to add  customer group in the  standard report?
    thanking you,
    regards,
    Rupang shah

    Hi,
    This is what I did for FBL5N with a developer because additional fields configuration does include certain tables.
    BTE1650  available for FBL5N and add a new field into one of those tables as an append structure and then use a BTE to populate the field for FBL5N.
    Hope that this helps
    Kind regards

  • How to add customized payslip in the place of standered payslip.

    Dear Experts,
    We have implementing ESS/MSS, how to add customized payslip( Zprograme) in the place of standered payslip and how do we can get pay slip under ESS from portal.
    Thanks in advance.
    Regards,
    Mahee.

    If you have developed your own SMARTFORM Payslip and a custom program to display it, then there is not much you can do with standard configuration.
    Steps provided by Siddhart will call a custom HRFORMS payslip in a standardv way, or convert a PE51 payslip to SMARTFORMS pdf and display in a standard way.
    You have to work with your Portal Consultant and/or ESS/MSS consultant and ABAP/Webdynpro Programmer for this one.
    One suggested appraoch is
    1) Create A Webdynpro programme which launches when Employee clicks on Payslip link
    2) This program passes the employee user id to an ABAP program in ECC
    3) ABAP Program calls the custom payslip program already developed and generates the payslip and passes it to the webdynpro program as a binary file.
    4) Webdynpro program displays payslip as pdf file.
    this Webdynpro program has a PCD URL. A resource is created and assigned this PCD URL.. Homepage customizing is done - this resource is assigned to the Payslip service which is assigned to the Payslip Subarea.
    Hope this helps. We actually used this approach briefly long back before switching to HRFORMS, so I know it will work, but I have obviously provided very high level here. Hope you can do something with this.
    Edited by: Harish T K on Feb 2, 2011 4:23 PM

  • How to add new tab after reason for rejection tab using tcode va01

    Hello,
    how to add new tab after reason for rejection tab using tcode va01.

    Hi,
    You can check this link...
    Hope it will be helpful to you.
    [https://forums.sdn.sap.com/click.jspa?searchID=23016273&messageID=6825861]
    [http://www.sapdevelopment.co.uk/enhance/fexits.htm]
    -Maharshi
    Edited by: Maharshi Vyas on Mar 3, 2009 12:45 PM

  • How to add custom button to Insert tab?

    Hello!
    I want to add my own button to the Insert tab. This is the
    tab where there are buttons like h1, h2, ul, ol etc.
    I often need the code tag, but this tag is not avaible in the
    Insert tab. So how to add a custom?

    Any help?

  • How to add custom field in delivery address/performance location tab in SRM shopping cart and Ship to address Pop-up in SRM PO?

    Hi Experts
    i have a reuirement where i have to add custom field in delivery address/performance location tab in SRM shopping cart and Ship to address Pop-up in SRM PO
    i am doing below steps for this.
    1. Adding custom field ZZfield in structure INCL_EEW_PD_PARTNER_CSF by  using  append structure.
    2. Spro ->Supplier Relationship Management -> SRM Server -> Cross application basic settings -> Extensions and field controls (personalization) -> Configure field control ->Configure Control for Fields of Substructures
    then click on  "Metadata for Fields of Substructures and Table-Like Enhancements"  
    add the below entry
    Bus. Object Set Type  : I am trying 7 and 29
    Structure Field Name  : ZZfield
    Bus. Object Type       : BUS2121/BUS2201
    Set Level                    : Item
    Field Visible :  Check box should be checked
    Field Enable :  check box should be checked
    Can anyone has the idea of this?
    Thanks
    Rohit

    Hello Rohit,
    Please create a enchancement for component  /SAPSRM/WDC_UI_DO_SHIPTO.
    Add new input field and label in view V_DODC_SHIPTO.
    Bind the input field value with field ZZfield from structure  /SAPSRM/WDC_UI_DO_SHIPTO in the context node SHIP_TO .
    Regards,
    Neelima

Maybe you are looking for

  • MDX Error in Reporting Services/Sharepoint

    Hi, I'm using SQL Server 2008 R2 SP1 CU5. I have a reporting that executes a DataSet with a MDX query. That report was executing very well before (in SQL Server 2008 R2 SP1), but after we updated SQL to SP1 Cumulative 5, the report returns an error. 

  • I cannot find the best way to format an external hard drive for MAC, PC, TV?

    Hello, I have a problem: I want to use an external hard drive on my Mac as well as on a PC and a TV. The normal structure of Mac (Journaled) isn't supported by PC/ TV. I changed the structue into DOS(FAT)  on my Mac. That's suppoerted by TV and PC. B

  • Fans run watching video, but don't when using Safari

    I am curious as to why the silverlight plugin ramps the fans up (3k+ rpm) when I am watching prime video's in Firefox, but when watching the same video's in Safari, the fans a pretty much the standard 2000 (2k - 1.5k) rpm. Happens with youtube too. S

  • File Item order in a Navigation Tree

    Hi, A consultant previously adapted the Navigation Menu Portlet from OPS to display the navigation tree for 'Basefile' items. He created an item type that builds a tree and when a link representing a file is clicked the file will appear in a frame ne

  • HT5313 How about fixing the bugs in iCal? and Sleep Mode?

    The 10.7.5 update sure has a lot of fluff patches. When is Apple going to fix something important, like all the bugs in iCal? And the bugs in Sleep Mode? Examples: • iCal events tend to pop up 30+ minutes late all day if I sleep the computer overnigh