developer
1564 TopicsSharePoint Online - How to keep left navigation expandable
Hi All, I am using SharePoint Online site collection. I have created Left navigation menus with sub menus. I want this menus should be expandable in SharePoint Online site. We had used SharePoint 2013 in that Left navigation showing expandable with sub menus so just line I need this behavior on SharePoint Online. Thanks, Harish Patil3Views0likes0CommentsSharePoint List - How to open Edit Current View option in same Tab
Hi All, Currently I am using SharePoint Online site collection. In that list if I click on Edit current view option from any view then it open in new Tab to edit view settings. How to open that in the same Tab? As in SharePoint 2013 if you modify list view then it opens in same Tab so this same behavior want in SharePoint Online. Is there any way to open in same Tab on SharePoint Online List. Thanks, Harish Patil3Views0likes0CommentsConnected Sharepoint to a Postgree database
Hello, I would like some help in connecting a PostGree database to SharePoint. I would like to be able to use the data contained in this database in lists. I should point out that I have no particular expertise on the subject. I would gladly accept a step-by-step guide. 😅31Views0likes2CommentsJSON formatting affecting Tile view when pic is modified
Hello! I am hoping someone can help with a random annoying JSON formatting issue I'm having! I am using a SharePoint list with a Tile view. It's JSON formatted to fit the file thumbnail on the tile - all good so far (I believe anyway, JSON is not something I am overly familiar with!). However, I've noticed when I modify the photo, the thumbnail ends up tiny on the tile and no amount of refreshing the screen changes it. Why is this? How can I sort it? See below, the pic on the left is the standard view size when the file is uploaded. The file on the right is post-modification (when it used to be the same size as the left picture and all I did was change it from a colour photo to B&W). This is my JSON formatting on the view itself: { "elmType": "div", "attributes": { "class": "sp-card-previewColumnContainer" }, "children": [ { "elmType": "div", "attributes": { "class": "sp-card-imageContainer" }, "style": { "max-height": "260px", "display": "flex", "object-fit": "contain", "justify-content": "center", "align-items": "center" }, "children": [ { "elmType": "filepreview", "attributes": { "src": "@thumbnail.small" }, "style": { "max-height": "100%", "max-width": "100%", "display": "inline-block", "object-fit": "contain" }, "filePreviewProps": { "fileTypeIconClass": "sp-fileTypeIcon-cardDesigner", "brandTypeIconClass": "sp-brandTypeIcon-cardDesigner" } } ] } ] },14Views0likes1CommentFunction of "GET IT" button in sharepoint app?
Hello, I have some questions related to deployment in sharepoint. Context: I have two sharepoint sites. Each have same application that run a webpart. Both have different version but still run the lastest webpart. Questions: What is the function of the "GET IT" button in sharepoint if both sites have lastest deloyed webpart. How can I deploy two different version of a webpart to two sites. Example a devlop site and a production site? Thank in advance.13Views0likes0CommentsReact and MSAL No active account found for Graph API after login Ensuring Account Readiness
Hi everyone, My React app uses Microsoft's MSAL library for user login. After login, it needs to show SharePoint images (like thumbnails in a table) using the Microsoft Graph API. The Problem: Often, right after a user logs into my app (using the Microsoft login popup), when my app tries to get these SharePoint images, I get a "No active account found" error. It seems like MSAL doesn't have an active user account ready for the Graph API call at that exact moment, even though MSAL itself says the user is logged in and that it isn't busy with other login tasks. This usually happens when the page first tries to show these images immediately after the login finishes. An Important Clue: I found something interesting: if the user first opens any SharePoint site in their browser (like in another tab) and then uses or refreshes my React app, the images load perfectly without any error. This makes me think it's a timing problem – my app might be trying to get the images too quickly after login, before the browser's connection to SharePoint is fully ready for my app to make requests via the Graph API. I am trying to make my app wait for MSAL to completely finish its setup, and I also double-check that MSAL has an active user account before I ask for the images. But, the error can still happen if the user hasn't done that manual SharePoint visit first. My Question: What's the best way in a React app (using MSAL) to reliably make sure that everything is truly ready – both the MSAL login being complete AND my app being able to successfully use the Graph API for SharePoint resources – immediately after a user logs in? I want users to see the images straight away without needing to manually open SharePoint first for the images in my app to work. Any tips or advice on how to best handle this "not quite ready yet" timing with MSAL and SharePoint would be a huge help! Thanks!17Views0likes0CommentsIssues with customRowAction
We have a library with a handful of metadata fields, including Document Status (vStatus) : Managed Metadata, default value = In Progress To Be Checked (vToBeChecked) : Yes/No, default value = No Checked (vChecked): Yes/No, default value = No 'To Be Checked' is used to filter a view that only shows items that need checking, it's not visible on the view itself - if Yes, then the document is visible for checking. When 'Checked' is toggled to Yes, a custom row action is triggered that sets 'Document Status' to Final, and sets 'To Be Checked' to No. This has been working for the last 3 years, now one user has started receiving an error that 'One or more fields have an error', the error points to the 'Document Status' field as having the problem. If I remove the line that updates the Status, everything else works as expected. I've re-created the above fields on a new site and am able to replicate the error The Site Owner account, using Edge or Chrome, normal or incognito/private receives the error SC Admin using Edge private mode it works One normal site Member has the error, another doesn't Code for 'vChecked' field { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "div", "style": { "display": "flex", "width": "100%", "height": "100%", "align-items": "center" }, "children": [ { "elmType": "div", "style": { "display": "flex", "width": "60px", "height": "30px", "border-radius": "15px", "align-items": "center", "flex-direction": "row", "justify-content": "=if(@currentField , 'flex-end' , 'flex-start')", "cursor": "pointer" }, "customRowAction": { "action": "setValue", "actionInput": { "vChecked": "=if(@currentField , '0' , '1' )", "vToBeChecked": 0, "vStatus": "=if(@currentField,if([$vStatus] == 'Final','Final|{{ GUID }}','In Progress|{{ GUID }}'),'Final|{{ GUID }}')" } }, "attributes": { "class": "=if(@currentField , 'ms-bgColor-themePrimary' , 'ms-bgColor-neutralTertiaryAlt')" }, "children": [ { "elmType": "div", "style": { "width": "18px", "height": "18px", "margin-left": "6px", "margin-right": "6px", "border-radius": "50%" }, "attributes": { "class": "ms-bgColor-white" } } ] } ] } Code for 'vStatus' field { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "div", "txtContent": "@currentField", "style": { "background-color": "=if(@currentField == 'Final', '#cfe7d8', if(@currentField == 'In Progress', '#fff4cc', if(@currentField == 'Internal Only', '#ccd6ec', '' )))" } } Code for 'vToBeChecked' field { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "div", "style": { "display": "flex", "width": "100%", "height": "100%", "align-items": "center" }, "children": [ { "elmType": "div", "style": { "display": "flex", "width": "60px", "height": "30px", "border-radius": "15px", "align-items": "center", "flex-direction": "row", "justify-content": "=if(@currentField , 'flex-end' , 'flex-start')", "cursor": "pointer" }, "customRowAction": { "action": "setValue", "actionInput": { "vToBeChecked": "=if(@currentField,'0','1')", "vChecked": 0 } }, "attributes": { "class": "=if(@currentField , 'ms-bgColor-themePrimary' , 'ms-bgColor-neutralTertiaryAlt')" }, "children": [ { "elmType": "div", "style": { "width": "18px", "height": "18px", "margin-left": "6px", "margin-right": "6px", "border-radius": "50%" }, "attributes": { "class": "ms-bgColor-white" } } ] } ] } Any ideas would be appreciated. - R142Views0likes2CommentsHow to set time limit for a SharePoint Calendar?
Hi, I have created an event calendar and I want if a user creates a event he/she have option to choose event start and end date with time. This feature is already OOTT but I want to set that end time won't exceed 4 hours from start time. For eg. If start time is 7th feb 2021 10:00AM selected and the end time is 7th feb 2021 03:00 PM selected then it will show that user an error "End time shouldn't exceed 4 hours from Start Time." Is there any JavaScript code available to help solving this issue or any List Validation formula?? Please help.1.5KViews0likes1CommentHiding redundant top nav in SPO
Hi everyone, 3 part question... A.) Can I hide this redundant "top nav" in SPO? Here, I have a house icon which just navigates to our comm site home page, yet the tree icon you see below it does the same thing. How can I hide this top nav bar here (marked with red arrow)? B.) How can I mimic this same nav bar across the other sites I have using this hub site? C.) (per green screenshot marking in the same above screenshot) Can I also hide this left side nav bar? I see you can do this via PowerShell until October, but would like it gone permanently from our intranet home/hub site if possible... Thank you in advance, Morghan3.1KViews0likes6Comments