Replies: 17 comments 25 replies
-
So happy to see these getting some attention and the openness of the discussion. Great job! My Command Set Wishlist (in order of priority):
Recent use caseI recently built a command set that provides integration with Microsoft Cognitive services to provide document translation directly of the documents in your library. Works great but the fact that Teams users have to choose Open in SharePoint first is SUPER frustrating. |
Beta Was this translation helpful? Give feedback.
-
What a great start! Could you elaborate a bit more on list refresh? Currently the list is refreshed automatically every few seconds if there are changes to the items. |
Beta Was this translation helpful? Give feedback.
-
Wow, great initiative to move this forward and Chris pretty much summarised everything I would submit. |
Beta Was this translation helpful? Give feedback.
-
One more thing to add here, when the customization is executing, we need the context of the list surfaced. For example, if you have a list webpart, the page context will have the pages list as the list ID, not the list represented by the webpart. |
Beta Was this translation helpful? Give feedback.
-
I may be late to the party, but I would love to see extensible command sets in Pages, not just libraries. For example, let's say that I want to add a button to allow page authors to run through an accessibility checker by clicking on a page button, or trigger a page translation process, or verify page content for compliance with communication guidelines, etc. Right now, they'd have to save the page, go to the list of pages, select the page, and trigger the command, instead of doing it within the page itself. Another thing I would suggest is that you take a look at how Dynamics/Power Platform handles adding custom commands to model-driven apps. Of course, the implementation/engine behind it would be different for SharePoint, but they've already done some thinking in terms of functionality that may inspire you. |
Beta Was this translation helpful? Give feedback.
-
I agree with everything said above but would like to add a few things:
I know we can accomplish the last two programmatically but built-in support would be preferred. |
Beta Was this translation helpful? Give feedback.
-
And - being able to disable the existing OOTB commands would be super helpful too. |
Beta Was this translation helpful? Give feedback.
-
Localization support should be better and in line with the rest of SPFx localization. Today we have the json options in the manifest file but that doesn't work with the standard SPFx localization option. The way we have solved this today is to set the command title to the localized string in onListViewUpdated which so far seems to work perfectly. |
Beta Was this translation helpful? Give feedback.
-
I don't know if someone already reported this but I'm leaving here my suggestion ... thanks. |
Beta Was this translation helpful? Give feedback.
-
This was mentioned in a bug (#4449) a while ago, dealing with async updates to command set state. |
Beta Was this translation helpful? Give feedback.
-
Updating this thread.
|
Beta Was this translation helpful? Give feedback.
-
How about making them work on Onedrive? |
Beta Was this translation helpful? Give feedback.
-
Hi Alex,
Maybe I wrong, but I think is not possible to specify a specific list the command set will be available, we only have the “ListTemplateId” in ClientSideInstance.xml
Or we can use define in elements.xml on the registration of custom Actions ?
[A screenshot of a computer Description automatically generated with medium confidence][Graphical user interface, text, application Description automatically generated]
Thank you very much.
João
From: Alex Terentiev ***@***.***>
Date: Friday, 28 January 2022 at 14:27
To: SharePoint/sp-dev-docs ***@***.***>
Cc: João Mendes ***@***.***>, Mention ***@***.***>
Subject: Re: [SharePoint/sp-dev-docs] The Future of Command Set Extensions (Discussion #7375)
@joaojmendes<https://github.com/joaojmendes> - could you clarify the requirement?
Currently you can assign a custom action to the specific list using REST/PowerShell.
Do you mean providing the same functionality using Feature Framework?
I assume (but hasn't tested) that it is possible to if the list definition is included in the SPFx package.
—
Reply to this email directly, view it on GitHub<#7375 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AC7YHVJINDBD2NV45DUD33LUYKRUJANCNFSM5FMVVPPQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thank you Alex for the feedback 😊
From: Alex Terentiev ***@***.***>
Date: Saturday, 29 January 2022 at 20:24
To: SharePoint/sp-dev-docs ***@***.***>
Cc: João Mendes ***@***.***>, Mention ***@***.***>
Subject: Re: [SharePoint/sp-dev-docs] The Future of Command Set Extensions (Discussion #7375)
I thought you can define custom actions in ListInstance xml. But I was wrong.
And CustomAction element doesn't support this kind of registration type.
So, unfortunately, as there are no huge investments in Feature Framework - I don't think we'd be able to implement that :(
—
Reply to this email directly, view it on GitHub<#7375 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AC7YHVOMKB66A7DB2HUADIDUYREIJANCNFSM5FMVVPPQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Additional update: the latest published version introduces |
Beta Was this translation helpful? Give feedback.
-
I would like to access the "Publish" command. Unfortunately it does not seem to be integrated in the commands in the basic formatting function set: https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/view-commandbar-formatting |
Beta Was this translation helpful? Give feedback.
-
There is a support for command bar customization for OOB options as mentioned in the below link: Microsoft support for command bar customization using JSON Any possibility that we can configure the options for custom list view command sets as well? |
Beta Was this translation helpful? Give feedback.
-
We are starting this discussion to collect thoughts on the present and future of Command Set Extensions.
Current State
We're aware of the issues around Command Sets.
Some of them have been already fixed or will be fixed in the next few drops (#1201, #1242, #6891, and others).
Some of them couldn't be fixed with the current architecture in place (#4056, #4882, #6252, etc.).
The main reason for that is confusion around the
onListViewUpdated
event.Based on the name, developers assume the event should fire when some list view update appears: navigation between views, drill up/down from/to a folder, selection, etc.
But the actual purpose of the event handler is to check if the commands are available in the current specific state. It leads to few limitations that are also confusing for the 3-party developers:
onListViewUpdated
isvisible
. Changes totitle
will not take effect.The Future
We understand the current state doesn't meet all the goals and want to improve it based on the received feedback.
First thing to mention, for backward compatibility, we will still support the current model.
But in parallel, we want to provide a better way to implement Command Sets.
Here is early thinking:
onExecute
remains the same, with the ability to update properties of the commands in the command set, as well as execute any LoB operationsonGetState
- handler that will be called for each command in the command set and provide the ability to request rich context of the list/document library state: current list (id), view (id), folder... This handler will still be called based on internal logic/caching and cannot be treated as navigation or any other type of event.What we want to hear is your feedback, additional proposal, and use cases for Command Sets.
Please, when sending feedback, assume that Application Customizer and Field Customizer have needed context and events and Command Sets will not be enhanced to provide workarounds to fix missing parts of other extensions.
Appreciate the feedback to come!
Beta Was this translation helpful? Give feedback.
All reactions