Problem with formated column "Editprops"

Copper Contributor

Hi!
I made a formatted column and added an icon (a pen) and the code for editing properties. "EditProps":

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
  "elmType": "button",
  "customRowAction": {
    "action": "editProps"
  },
  "attributes": {
    "class": "ms-fontColor-themePrimary ms-fontColor-themeDark--hover",
    "title": "Redigera metadata/kolumner"
  },
  "style": {
    "border": "none",
    "font-size": "18px",
    "padding-top": "0px",
    "background-color": "transparent",
    "cursor": "pointer"
  },
  "children": [
    {
      "elmType": "span",
      "attributes": {
        "iconName": "Edit",
        "class": "ms-font-m"
      }
    }
  ]
}

It mostly works except for one place. Of course where I was planning on using it.
In Teams the users sometimes are going to move documents to a SharePoint Team site. If I mark the document and choose either Move to or Copy to, Choose a library with the editprops column and copy it there I want an easy way to edit the properties in the target library.
When the file is copied I hit the link in the dialogbox below:

seStrmsrud_0-1676556103356.png

The target library is shown in the Teams window. I click the pen to open the edit properties panel. Nothing shows:

seStrmsrud_1-1676556193474.png

 

Can you please fix it!

0 Replies