Questions tagged [listviewcommandset]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
29 views

Sharepoint Spfx List View command set

I have a requirement to create a List view command set in SharePoint Online(no framework used) for a document set library. My document set has many folders based on year. So , basically I need to ...
1
vote
0answers
18 views

Can the onListViewUpdated() method run async?

I need to implement a button that is only visible if the user has edit permissions for an item in a list. Therefore I have to make an async api call in the onListViewUpdated() method, but I does not ...
0
votes
0answers
19 views

Icon of a custom Edit button is always too small

I have implemented a custom button "Edit contract" in the listviewcommand extension. I am passing the base 64 encoded image to iconImageUrl in the manifest.json. But my button icon is always ...
2
votes
2answers
67 views

SPFx Extension BaseListViewCommandSet

I created a SPFx BaseListViewCommandSet extension. My component puts the status of all selected rows. The update works well. However, when I want to refresh the page (location.reload ();) at the end ...
1
vote
0answers
24 views

How to add Multilevel ListView Command Set buttons using SPFX Extensiton?

In manifest.json file I have structure like: "items": { "COMMAND_1": { "title": { "default": "Command One" }, "iconImageUrl": "_layouts/15/images/itslidelibrary.png", "type": "command", }, "...
1
vote
1answer
415 views

How to get all items in list view from SPFX ListView Command set onExecute()?

Is it possible to get all (not only selected) rows\items in ListView when ListView Command Set onExecute() method is called? E.g.: @override public onExecute(event: ...
1
vote
0answers
293 views

Invalid selected rows in onExecute() of SPFX ListView Command set

Simple code just built from yo @microsoft/sharepoint wizard: Elements.xml: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <...
2
votes
1answer
755 views

How to add sub commands in my SPFX List View Command Set command

My SPFX contains extension that adds two commands in Document List: Elements.xml: <CustomAction Title="My Commands" RegistrationId="101" RegistrationType="List" Location="...
1
vote
1answer
115 views

How to install List view command set extension in a site collection after deploying it to app catalog using CSOM?

I have created a ListView command set extension using SPFx and upload it in the app catalog. Now I want to install this extension for only particular sites. I tried adding it as a custom action but ...
0
votes
1answer
82 views

Can we use column formatter with command set customizer?

Can we use the listview command set extension to change the format of the view or column in SharePoint online? If yes, how? And is there any other way to create a template like feature for this? ...
1
vote
1answer
126 views

List View Command Set custom commands not loading

My SharePoint list is not loading the custom commands when the command set has been added as an app to SharePoint Online. The commands will load correctly if I try them in my 'Developer' site ...
2
votes
0answers
286 views

Sharepoint Extension ListView CommandSet - not showing

I created a site page and then inside that I added a List webpart, and then choose the list I wanted. Then I put the link of that page in my extension on pageUrl in serve.json. But the extension is ...
0
votes
1answer
352 views

Prevent Dialog from closing after pressing OK - SPFX Extension Listview Command

I created a spfx extension that shows a dialog using Dialog.alert(`Are you sure you want to open Quarter ${selectedItem.Quarter} for Period ${selectedItem.Period}?`).then(() => { this....
0
votes
1answer
373 views

How to trigger Microsoft Flow using SPFx Extension's ListView Command set

As the title says, How to trigger Microsoft Flow using SPFx Extension's ListView Command set? Has anyone tried this and get it to work? Please guide me to achieve this.
1
vote
3answers
1k views

SPFx Deployment - Failing Gulp package-solution — ship

Update: I was aiming for extenal CDN and I uploaded the artifacts successfully after setting "includeClientSideAssets": false. Still even after adding my app in app Catalog with no error, adding the ...
0
votes
1answer
192 views

SharePoint Framework Extension Deployment Challenges

I am quite new to SharePoint and want to know if I can create a custom variable(property) in SharePoint Online (may be at site level and Tenant level) and use it in SPFx. I had a requirement to ...
0
votes
1answer
461 views

How to get Share URL from command set?

I am developing a command set & looking for a way to get the Share URL of selected documents. I have tried these to get other urls. event.selectedRows.getValueByName('.spItemUrl'); event....
0
votes
1answer
214 views

Mismatch in SPFX ListviewCommandSet buttons visibility in modern Document Library

When I set the visibility of the the custom button, It should be applicable at both places (ContextMenu + CommandBar). I am having 2 buttons (Add Fav + Remove Fav). Based on few conditions, i am ...
5
votes
4answers
3k views

SPFX - Listview command - Get current folder

I have created a SPFX Listview command and I need to get the current URL of the folder that I am in. Does anyone know if this is possible? I can't find any documentation regarding this on sp-pnp-js ...
1
vote
1answer
160 views

SPFx: ctx.ListSchema equivalent in modern list view

Classic list view provides information on the list schema through ctx.ListSchema, is there any for SPFx. I tried almost all objects in SPFx ListViewCommandSet and they are null or empty. Is there way ...