Forum Widgets
Latest Discussions
Custom Context button not working in site page (Library as webpart)
I'm facing the issue. Created ListviewCommandset Extension for context menu is working fine on library level and able to see my custom button but when i add the document library as webpart in the site page , I'm not able to get the custom context menu. I have used SP version of 1.19 also 1.20 and 1.16 also. Tried with CSOM code also SP.ClientContext for context. Also tried this.context.listView.SelectedRows. All this are working fine on Document library level not as webpart in site page. Please give any solution to achieve this . Thanks in advanceHariharan2468Jan 17, 2025Occasional Reader1View0likes0CommentsHow to add buttons in context menu in a Doc Library which is added as a WebPart inside a SP page
Hi, I created list view command set extension application for adding a custom button into the context menu. I have a SharePoint Page in which I added a document library as a webpart. In the Serve.Json of my application I have given this page URL to apply the custom button into the library. Around 2 weeks back this approach worked and the buttons were shown in the context menu but now they are not showing. In a normal document library it is working and showing the Custom button. but in a page where a document library is added as a web part it is not showing. How can we achieve this? What could be the Reason? And Please give me any solution to achieve this functionality. Note: I have tried this solution with different SharePoint Sites but it didn't worked. Thanks in AdvanceShivaram1436Jan 17, 2025Occasional Reader9Views0likes0CommentsAbout SharePoint document library feature (tile view using the Document Card Designer)
I want to display thumbnails and information in the tile view using the document card designer in the SharePoint document library function, but if the number of characters is too long, "・・・" is displayed as shown below and the text is cut off. If you know how to display multiple lines so that the entire text can be displayed, I would appreciate it if you could tell me. *Sharepoint is made on the communication site. < Image >YMMYJan 16, 2025Copper Contributor98Views0likes3CommentsSharepoint modern List choice column with dynamic values
I want to add a column (of type choice/drop down) to an existing sharepoint online modern list. the choice option i want to provide depends on an other column eg. if column A has department sales then column B should have 3 choice options , ifcolumn B has department finance then column B should have 4 different options to select. how can i achieve this ?swati8826Jan 13, 2025Copper Contributor16KViews0likes3CommentsHow to stop SharePoint list custom column formatting affecting form display?
Hello, I am trying to apply custom formatting to a multi-select 'Choices' column in a SharePoint list. The custom formatting applies consistent capitalisation to choices, and joins them with a delimiter (required as just applying the style removes spaces between choice items). The custom formatting JSON is as below: { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "div", "txtContent": "=join(@currentField,', ')", "style": { "text-transform": "capitalize" } } However, when I apply this style to the column through the JSON editor it affects the display of the corresponding field in the form, adding line breaks where they are not wanted, as below. I have tried adding "word-wrap": "nowrap" in the style element of the column format, which works to stop the new lines being added where they are not wanted but prevents logical new lines being added to show all selected elements. I've also tried variations of the "width" property in the style element to try and force the form to use all available space, but to no avail. Interestingly, this only affects 'edit' and 'view' forms (where you are interacting with an existing item) and is not affecting the 'new' form when creating new items. I have custom JSON formatting in the 'Head' section of the form itself, but nothing in the 'Body' or 'Footer' sections. I've tried removing the customisation in the 'Head' but this doesn't resolve the issue. If anyone has any solutions they can offer they would be very much appreciated.SP_RamblerJan 07, 2025Copper Contributor39Views0likes4CommentsHow to read file content for a IRM Protected PDF?
I have a SharePoint Document Library with IRM Protection turned on. I need to read content of the IRM Protected PDF file at the code level (.NET API Endpoint). I am able to get the binary content of the file at the code level, but no PDF Reader is able to read the content of the IRM Protected file. Is there a work around?SiddheshDambeDec 31, 2024Copper Contributor3Views0likes0CommentsNewly submitted items are not displayed when SPFx Field Customizer
When applying the SPFx Field Customizer, the list will be displayed in the old UI. When I post an item to the old UI list, the latest item posted is shown in the list view, but it does not immediately appear on the screen where it is pasted as a web part on the page. Steps: Prepare a list with SPFx's Field Customizer applied Display the target list on the page Display the page and the list in separate tabs Post an item to the target list The item does not appear on the page where the list web part is placed Reloading (F5) on the page sometimes shows or does not show the latest itemtnDec 12, 2024Copper Contributor31Views1like0CommentsIs there a way around running a custom script before all scripts on any web page
I successfully posted a discussion about "Is there a way around running a custom script before all scripts on any web page in SharePoint Online Development" just now, but I cannot find it now. so I tried posting this to verify I can publish a post.ssfangDec 02, 2024Copper Contributor20Views0likes0CommentsIs there a way around running a custom script before all scripts on any web page
Hi, Is there a way around running a custom script before all scripts on any web page in SharePoint Online Development? I know how to create extension component and web parts with SharePoint Framework (SPFx), but I found its scripts is loaded by the framework and is executed too late. So I want to find a way to load my script for any page, including classic and modern pages, in order to take over the data (what data are allowed to be fetched). Besides, my script doens't depend on SharePoint Online objects, and replace the service worker (progressive web apps - Can I have multiple service workers both intercept the same fetch request? - Stack Overflow). After referring toKey features of the SharePoint Framework Important The SharePoint pageHTML DOM is not an API. You should avoid taking any dependencies on the page DOM structure or CSS styles, which are subject to change and potentially break your solutions. SharePoint Framework provides a rich API to customize the SharePoint experience in reliable ways and is the only supported means to interact with the SharePoint page HTML DOM. I found that it is best to do the client-side control by the public REST interfaces used byPnP JS (a safe API for interacting with SharePoint REST APIs and Microsoft Graph APIs) because I think SPFx is mainlyapplicable for UI function (beautification) after data reach the client browser. Thanks!ssfangDec 02, 2024Copper Contributor22Views0likes0Comments
Resources
Tags
- developer1,219 Topics
- PnP641 Topics
- APIs475 Topics
- Extensibility249 Topics
- Responsive127 Topics
- sharepoint111 Topics
- hybrid81 Topics
- SPFx70 Topics
- SharePoint Online64 Topics
- powershell23 Topics