ListView Command set visible on List and not on Document Library.
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
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!
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
@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.
Listview commandset was visible and suddenly disappeared. There is no error. While debugging the command is set to true but still does not show
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.
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 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="{"sampleTextOne":"One item is selected in the list.", "sampleTextTwo":"This command is always visible."}">
</CustomAction>
<CustomAction
Title="SpfxSpApproval"
RegistrationId="100"
RegistrationType="List"
Location="ClientSideExtension.ListViewCommandSet"
ClientSideComponentId="00000000-0000-0000-0000-000000000000"
ClientSideComponentProperties="{"sampleTextOne":"One item is selected in the list.", "sampleTextTwo":"This command is always visible."}">
</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="{"sampleTextOne":"One item is selected in the list.", "sampleTextTwo":"This command is always visible."}"
ComponentId="00000000-0000-0000-0000-000000000000" />
</Elements>
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
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