SOLVED

How to put "Edit all" item link in Library view.

%3CLINGO-SUB%20id%3D%22lingo-sub-1463201%22%20slang%3D%22en-US%22%3EHow%20to%20put%20%22Edit%20all%22%20item%20link%20in%20Library%20view.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1463201%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Experts%2C%3C%2FP%3E%3CP%3ECan%20we%20put%20some%20link%20in%20a%20library%20view%20instead%20of%20these%20below%20steps.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3Eclick%20the%20ellipsis%20(...)%20for%20an%20item%20in%20the%20list%2C%20select%20%3C%2FSPAN%3E%3CSTRONG%3Emore%3C%2FSTRONG%3E%3CSPAN%3E%2C%20and%20then%20click%20%3C%2FSPAN%3E%3CSTRONG%3EProperties%3C%2FSTRONG%3E%3CSPAN%3E%20to%20edit%20the%20item.%20or%20Select%20the%20item%20in%20the%20select%20and%20click%20on%20Information%20Panel(I)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3Eas%20I%20am%20unable%20to%20edit%20all%20items%20in%20one%20go%20I%20have%20also%20tried%20to%20select%20%3C%2FSPAN%3E%3CSPAN%3EEdit(link%20to%20edit%20item)%20in%20my%20default%20view%20but%20its%20not%20showing%20anything.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EAny%20workaround%20for%20the%20same%20would%20be%20much%20appreciable.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1463255%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20put%20%22Edit%20all%22%20item%20link%20in%20Library%20view.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1463255%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F352500%22%20target%3D%22_blank%22%3E%40AnuragSaini%3C%2FA%3E%26nbsp%3Byou%20can%20bulk%20edit%20custom%20columns%20in%20your%20library%20although%20not%20the%20default%20columns%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22bulkEdit.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F198824i265713F2647D00CB%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22bulkEdit.png%22%20alt%3D%22bulkEdit.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ERob%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ELos%20Gallardos%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%20color%3D%22%23333399%22%3EMicrosoft%20Power%20Automate%20Community%20Super%20User%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1463274%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20put%20%22Edit%20all%22%20item%20link%20in%20Library%20view.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1463274%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F174092%22%20target%3D%22_blank%22%3E%40Rob%20Elliott%3C%2FA%3E%20for%20the%20quick%20response.%20But%20my%20requirement%20is%20to%20put%20edit%20link%20per%20library%20item.%20Users%20don't%20want%20to%20select%20and%20click%20%22I%22%20as%20shown%20by%20you.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1463393%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20put%20%22Edit%20all%22%20item%20link%20in%20Library%20view.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1463393%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F352500%22%20target%3D%22_blank%22%3E%40AnuragSaini%3C%2FA%3E%26nbsp%3BI%20agree%20that%20the%20Edit%20Properties%20menu%20link%20is%20not%20in%20a%20useful%20or%20intuitive%20place.%20So%20I've%20prepared%20some%20JSON%20code%20which%20will%20allow%20you%20to%20have%20a%20button%20for%20each%20item%20in%20your%20library%20to%20open%20the%20Edit%20Properties%20panel%20for%20each%20document%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Edit%20Properties%20Button.png%22%20style%3D%22width%3A%20926px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F198829iED5DEC24706B85DD%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Edit%20Properties%20Button.png%22%20alt%3D%22Edit%20Properties%20Button.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOn%20your%20view%20of%20the%20library%2C%20click%20on%20Format%20this%20view%20and%20paste%20the%20following%20JSON%20into%20the%20advanced%20window.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-json%22%3E%3CCODE%3E%7B%0A%20%20%22%24schema%22%3A%20%22https%3A%2F%2Fdeveloper.microsoft.com%2Fjson-schemas%2Fsp%2Fview-formatting.schema.json%22%2C%0A%20%20%22hideSelection%22%3A%20true%2C%0A%20%20%22hideColumnHeader%22%3A%20true%2C%0A%20%20%22rowFormatter%22%3A%20%7B%0A%20%20%20%20%22elmType%22%3A%20%22div%22%2C%0A%20%20%20%20%22style%22%3A%20%7B%0A%20%20%20%20%20%20%22flex%22%3A%20%220%200%20170px%22%2C%0A%20%20%20%20%20%20%22display%22%3A%20%22inline%22%0A%20%20%20%20%7D%2C%0A%20%20%20%20%22children%22%3A%20%5B%0A%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22elmType%22%3A%20%22button%22%2C%0A%20%20%20%20%20%20%20%20%22customRowAction%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20%22action%22%3A%20%22editProps%22%0A%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%22txtContent%22%3A%20%22Edit%20Properties%22%2C%0A%20%20%20%20%20%20%20%20%22attributes%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20%22class%22%3A%20%22sp-row-button%20ms-bgColor-neutralLighter%20ms-fontWeight-semibold%22%0A%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%22style%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20%22background-color%22%3A%20%22%23e3e7e7%22%2C%0A%20%20%20%20%20%20%20%20%20%20%22width%22%3A%20%22135px%22%2C%0A%20%20%20%20%20%20%20%20%20%20%22height%22%3A%20%2232px%22%2C%0A%20%20%20%20%20%20%20%20%20%20%22margin%22%3A%20%2210px%200%22%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22elmType%22%3A%20%22button%22%2C%0A%20%20%20%20%20%20%20%20%22attributes%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20%22class%22%3A%20%22ms-fontSize-l%22%0A%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%22style%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20%22border%22%3A%20%22None%22%2C%0A%20%20%20%20%20%20%20%20%20%20%22color%22%3A%20%22%230077ff%22%2C%0A%20%20%20%20%20%20%20%20%20%20%22background-color%22%3A%20%22transparent%22%2C%0A%20%20%20%20%20%20%20%20%20%20%22cursor%22%3A%20%22pointer%22%0A%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%22txtContent%22%3A%20%22%5B%24FileLeafRef%5D%22%2C%0A%20%20%20%20%20%20%20%20%22customRowAction%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20%22action%22%3A%20%22defaultClick%22%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%5D%0A%20%20%7D%0A%7D%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERob%3CBR%20%2F%3ELos%20Gallardos%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%20color%3D%22%23333399%22%3EMicrosoft%20Power%20Automate%20Community%20Super%20User%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1463798%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20put%20%22Edit%20all%22%20item%20link%20in%20Library%20view.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1463798%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F174092%22%20target%3D%22_blank%22%3E%40Rob%20Elliott%3C%2FA%3E%20for%20the%20working%20JSON.%20I%20would%20say%20its%20the%20best%20solution%20provided%20by%20you.%20Just%20an%20ask%20If%20other%20columns%20need%20to%20be%20shown%20in%20this%20view%20then%20what%20changes%20I%20need%20to%20be%20done%20because%20I%20need%20to%20show%20the%20metadata%20as%20well%20like%20created%20by%2C%20modified%2C%20modified%20by%20etc.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1467952%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20put%20%22Edit%20all%22%20item%20link%20in%20Library%20view.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1467952%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F174092%22%20target%3D%22_blank%22%3E%40Rob%20Elliott%3C%2FA%3E%26nbsp%3B%20Hello%20Rob%20I%20had%20created%20a%20single%20line%20of%20text%20column%20and%20put%20below%20JSON%20into%20that.%20I%20was%20hit%20and%20trial%20using%20your%20JSON%20and%20it%20worked%20for%20me%20as%20per%20my%20expectation.%20Thanks%20for%20the%20help.%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%7B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%22%24schema%22%3A%20%22%3CA%20title%3D%22https%3A%2F%2Fdeveloper.microsoft.com%2Fjson-schemas%2Fsp%2Fv2%2Fcolumn-formatting.schema.json%2522%22%20href%3D%22https%3A%2F%2Fdeveloper.microsoft.com%2Fjson-schemas%2Fsp%2Fv2%2Fcolumn-formatting.schema.json%2522%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%22%3Ehttps%3A%2F%2Fdeveloper.microsoft.com%2Fjson-schemas%2Fsp%2Fv2%2Fcolumn-formatting.schema.json%22%3C%2FA%3E%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%22elmType%22%3A%20%22button%22%2C%22customRowAction%22%3A%20%7B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22action%22%3A%20%22editProps%22%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%7D%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22txtContent%22%3A%20%22Edit%20Properties%22%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22attributes%22%3A%20%7B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22class%22%3A%20%22sp-row-button%20ms-bgColor-neutralLighter%20ms-fontWeight-semibold%22%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%7D%3CBR%20%2F%3E%7D%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Edit%20Property.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F199039i4688A7B615FBC694%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Edit%20Property.png%22%20alt%3D%22Edit%20Property.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1467957%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20put%20%22Edit%20all%22%20item%20link%20in%20Library%20view.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1467957%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F352500%22%20target%3D%22_blank%22%3E%40AnuragSaini%3C%2FA%3E%26nbsp%3Bthat's%20good%20as%20I%20hadn't%20had%20a%20chance%20to%20look%20at%20it%20again.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERob%3CBR%20%2F%3ELos%20Gallardos%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%20color%3D%22%23333399%22%3EMicrosoft%20Power%20Automate%20Community%20Super%20User%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello Experts,

Can we put some link in a library view instead of these below steps.

 

click the ellipsis (...) for an item in the list, select more, and then click Properties to edit the item. or Select the item in the select and click on Information Panel(I)

 

as I am unable to edit all items in one go I have also tried to select Edit(link to edit item) in my default view but its not showing anything.

 

Any workaround for the same would be much appreciable.

6 Replies

@AnuragSaini you can bulk edit custom columns in your library although not the default columns:

 

bulkEdit.png

 

Rob

Los Gallardos
Microsoft Power Automate Community Super User

Thanks @RobElliott for the quick response. But my requirement is to put edit link per library item. Users don't want to select and click "I" as shown by you. 

best response confirmed by AnuragSaini (Occasional Contributor)
Solution

@AnuragSaini I agree that the Edit Properties menu link is not in a useful or intuitive place. So I've prepared some JSON code which will allow you to have a button for each item in your library to open the Edit Properties panel for each document:

Edit Properties Button.png

 

On your view of the library, click on Format this view and paste the following JSON into the advanced window.

 

 

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
  "hideSelection": true,
  "hideColumnHeader": true,
  "rowFormatter": {
    "elmType": "div",
    "style": {
      "flex": "0 0 170px",
      "display": "inline"
    },
    "children": [
      {
        "elmType": "button",
        "customRowAction": {
          "action": "editProps"
        },
        "txtContent": "Edit Properties",
        "attributes": {
          "class": "sp-row-button ms-bgColor-neutralLighter ms-fontWeight-semibold"
        },
        "style": {
          "background-color": "#e3e7e7",
          "width": "135px",
          "height": "32px",
          "margin": "10px 0"
        }
      },
      {
        "elmType": "button",
        "attributes": {
          "class": "ms-fontSize-l"
        },
        "style": {
          "border": "None",
          "color": "#0077ff",
          "background-color": "transparent",
          "cursor": "pointer"
        },
        "txtContent": "[$FileLeafRef]",
        "customRowAction": {
          "action": "defaultClick"
        }
      }
    ]
  }
}

 

 

Rob
Los Gallardos
Microsoft Power Automate Community Super User

Thanks @RobElliott for the working JSON. I would say its the best solution provided by you. Just an ask If other columns need to be shown in this view then what changes I need to be done because I need to show the metadata as well like created by, modified, modified by etc.

@RobElliott  Hello Rob I had created a single line of text column and put below JSON into that. I was hit and trial using your JSON and it worked for me as per my expectation. Thanks for the help.

 
{
   "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
   "elmType": "button","customRowAction": {
          "action": "editProps"
        },
        "txtContent": "Edit Properties",
        "attributes": {
          "class": "sp-row-button ms-bgColor-neutralLighter ms-fontWeight-semibold"
        }
}
 
 
 

Edit Property.png

 

@AnuragSaini that's good as I hadn't had a chance to look at it again.

 

Rob
Los Gallardos
Microsoft Power Automate Community Super User