sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

ListView Command set visible on List and not on Document Library.

Open VesaJuvonen opened this issue 8 years ago • 10 comments

From @mubash7 on May 15, 2018 19:20

Category

  • [ ] Question
  • [ ] Typo
  • [x] Bug
  • [ ] Additional article idea

Expected or Desired Behavior

For Listview Command set, if RegID is 101, the command set should be deployed in document library.

Observed Behavior

Command set visible in List and not on Document Library Elements.txt @VesaJuvonen

Steps to Reproduce

Followed instructions on MS tutorial: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/building-simple-cmdset-with-dialog-api

Submission Guidelines

I have read that changing the RegId fixes the issue but does not seems to be happening in my case. https://github.com/SharePoint/sp-dev-docs/issues/1628

Thanks for your contribution! Sharing is caring.

Copied from original issue: SharePoint/sp-dev-fx-extensions#133

VesaJuvonen avatar Jun 12 '18 07:06 VesaJuvonen

From @sanfo168 on June 1, 2018 18:35

It could be that your ClientSideComponentID does not have an ID associated with it. Try going into your UpRevisionCommandSet.manifest.json file and use the ID from there as the ClientSideComponentID in the elements.xml.

Hope this helps!

VesaJuvonen avatar Jun 12 '18 07:06 VesaJuvonen

Apologies for hijacking this closed thread, but after following these suggestions, I am still unable to get the boilerplate provisioned extension to work on a document library after adding a custom action with the registrationID of 101. Any help would be appreciated. Thanks

donavanmarais avatar May 30 '19 16:05 donavanmarais

@andrewconnell @VesaJuvonen @donavanmarais Even I'm facing the same issue, command set is not visible for RegID 101 document library!!! I've tried the above mentioned approach but still issue persists,any further help would be appreciated. Thanks.

shivdk7 avatar Jul 23 '19 12:07 shivdk7

Listview commandset was visible and suddenly disappeared. There is no error. While debugging the command is set to true but still does not show

preetippatki avatar Jun 02 '20 05:06 preetippatki

Are there any new developments on this? I am also experiencing this issue, and have not been able to see my command set on either modern or classic document libraries. I have tried the steps suggested above, and have tried setting my RegistrationID to both 101 and 119 (suggested in issue #4136), but nothing seems to work.

LastGunslinger avatar Sep 15 '20 21:09 LastGunslinger

I have this issue also. test.zip

Help me pls

dbobrovsky avatar Sep 23 '20 19:09 dbobrovsky

Hi @dbobrovsky @LastGunslinger @preetippatki - sorry for long delay. Could you please check if that's still the issue? We are unable to reproduce it, seems to be fixed a while ago. Thanks!

AJIXuMuK avatar Sep 27 '21 16:09 AJIXuMuK

@AJIXuMuK I don't believe that this was fixed by a software update, I needed to fix my elements.xml and ClientSideInstance.xml configuration files. For reference, this is how the files are set up currently:

elements.xml

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <CustomAction
        Title="SpfxSpApproval"
        RegistrationId="101"
        RegistrationType="List"
        Location="ClientSideExtension.ListViewCommandSet"
        ClientSideComponentId="00000000-0000-0000-0000-000000000000"
        ClientSideComponentProperties="{&quot;sampleTextOne&quot;:&quot;One item is selected in the list.&quot;, &quot;sampleTextTwo&quot;:&quot;This command is always visible.&quot;}">
    </CustomAction>
    <CustomAction
        Title="SpfxSpApproval"
        RegistrationId="100"
        RegistrationType="List"
        Location="ClientSideExtension.ListViewCommandSet"
        ClientSideComponentId="00000000-0000-0000-0000-000000000000"
        ClientSideComponentProperties="{&quot;sampleTextOne&quot;:&quot;One item is selected in the list.&quot;, &quot;sampleTextTwo&quot;:&quot;This command is always visible.&quot;}">
    </CustomAction>
</Elements>

ClientSideInstance.xml

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <ClientSideComponentInstance
        Title="SpfxSpApproval"
        Location="ClientSideExtension.ListViewCommandSet"
        ListTemplateId="101"
        Properties="{&quot;sampleTextOne&quot;:&quot;One item is selected in the list.&quot;, &quot;sampleTextTwo&quot;:&quot;This command is always visible.&quot;}"
        ComponentId="00000000-0000-0000-0000-000000000000" />
</Elements>

LastGunslinger avatar Sep 27 '21 16:09 LastGunslinger

This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within the next 7 days of this comment. Please see our wiki for more information: Issue List Labels: Needs Author Feedback & Issue List: No response from the original issue author

ghost avatar Oct 04 '21 17:10 ghost

Closing issue due to no response from the original author. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: No response from the original issue author

ghost avatar Oct 11 '21 18:10 ghost