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

Issue in Deployment - Listview Command set not appearing in Document Library

Open mubash7 opened this issue 8 years ago • 5 comments

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.

mubash7 avatar May 17 '18 06:05 mubash7

I'm having the same issue trying to get an extension ready for our production tenant. The RegistrationType 100 works fine with standard lists, however changing this to 101 for a Document Library doesn't show anything.

When running gulp serve and passing the query parameter when in a document library the list command is show.

Versions: "dependencies": { "@microsoft/decorators": "~1.4.1", "@microsoft/generator-sharepoint": "^1.4.1", "@microsoft/sp-core-library": "~1.4.1", "@microsoft/sp-dialog": "~1.4.1", "@microsoft/sp-listview-extensibility": "~1.4.1", "@types/webpack-env": ">=1.12.1 <1.14.0" }

Elements: (Removed component ID for this public post) <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <CustomAction Title="Email" RegistrationId="101" RegistrationType="List" Location="ClientSideExtension.ListViewCommandSet.ContextMenu" ClientSideComponentId="e8926d91-c896-441a-80ca-fe0d95fae76e" ClientSideComponentProperties="{}"> </CustomAction> </Elements>

mcowley5 avatar May 18 '18 08:05 mcowley5

@mubash7 @mcowley5 did you change the RegistrationId in the TenantWideExtensions list or just the values in the assets/elements.xml and assets/ClientSideInstance.xml? If just the files in the assets folder it could be ignoring the update if there's already an existing item in the TenantWideExtensions list?

I'm not sure how exactly it decides to make new list items here.

deanbot avatar Feb 22 '19 20:02 deanbot

This was a while ago this happened but I believe it was just a change to the registrationID set to 101 in the elements.xml file. Following the instructions linked in the Microsoft document. This could have been resolved by now

mcowley5 avatar Feb 22 '19 20:02 mcowley5

@deanbot @mcowley5 @mubash7 Even I'm facing the same issue, command set is not visible for RegID 101 document library, still issue persists? Any help would be appreciated.Thanks

shivdk7 avatar Jul 23 '19 12:07 shivdk7

This issue is being closed as part of an issue list cleanup project. Issues with no activity in the past 6 months that aren't tracked by engineering as bugs were closed as part of this inititive. If this is still an issue, please follow the steps outlined to re-open the issue.

msft-github-bot avatar Jan 22 '20 21:01 msft-github-bot